adk_token_refresh_sup (erlang_adk v0.7.0)

View Source

Dynamic supervisor for short-lived authentication refresh workers.

Summary

Types

server/0

-type server() :: supervisor:sup_ref().

Functions

cancel_refresh(Supervisor, Generation)

-spec cancel_refresh(server(), reference()) -> ok.

Stop a refresh and remove its dynamic child specification.

child_spec(Opts)

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

init(Opts)

start_link()

-spec start_link() -> supervisor:startlink_ret().

start_link(Opts)

-spec start_link(map()) -> supervisor:startlink_ret().

start_refresh(Supervisor, Manager, Generation)

-spec start_refresh(server(), pid(), reference()) -> supervisor:startchild_ret().