adk_auth_callback_guard (erlang_adk v0.7.0)

View Source

Internal isolation boundary for authentication provider callbacks.

The callback and its result normalizer run in a bounded process. A process alias prevents late replies from remaining in the caller mailbox, while a tiny watchdog kills the callback if its owner dies before the deadline.

Summary

Types

outcome/1

-type outcome(Value) :: {ok, Value} | timeout | failed.

Functions

run(Callback, Normalizer, TimeoutMs, MaxHeapWords, MaxResultBytes)

-spec run(fun(() -> term()), fun((term()) -> Value), pos_integer(), pos_integer(), pos_integer()) ->
             outcome(Value).