Packages

A Gleam actor registry that manages actors by key, with fast ETS lookups and automatic cleanup

Current section

Files

Jump to
reki include reki_StartIfNotExists.hrl
Raw

include/reki_StartIfNotExists.hrl

-record(start_if_not_exists, {
key :: any(),
start_fn :: fun((any()) -> {ok,
gleam@otp@actor:started(gleam@erlang@process:subject(any()))} |
{error, gleam@otp@actor:start_error()}),
reply_to :: gleam@erlang@process:subject({ok,
gleam@erlang@process:subject(any())} |
{error, gleam@otp@actor:start_error()})
}).