adk_task_registry (erlang_adk v0.7.0)

View Source

Monitor-backed registry for supervised tasks.

Summary

Functions

child_spec(Opts)

-spec child_spec(term()) -> supervisor:child_spec().

code_change(OldVsn, State, Extra)

handle_call(Request, From, State)

handle_cast(Message, State)

handle_info(Message, State)

init(_)

lookup(TaskRef)

-spec lookup(binary()) -> {ok, pid()} | {error, not_found}.

register(TaskRef, Pid)

-spec register(binary(), pid()) -> ok | {error, already_exists}.

start_link()

-spec start_link() -> gen_server:start_ret().

terminate(Reason, State)