Tusk v0.1.2 Tusk View Source
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
execute an mfa or a closure
Starts a supervisor, a Tusk GenServer and a companion
Link to this section Types
Link to this type
option()
View Source
option() :: {:no_retry_exceptions, [module()]} | {:on_success, callback()} | {:on_failure, callback()} | {:on_error, callback()} | {:timeout, non_neg_integer() | nil | :infinity} | Supervisor.init_option()
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
execute an mfa or a closure
Link to this function
start(sup, task, options \\ [])
View Source
start(Supervisor.supervisor(), task(), [option()]) :: DynamicSupervisor.on_start_child()
Starts a supervisor, a Tusk GenServer and a companion
The supervisor and the companion are supervised by the dynamic supervisor, and the Tusk GenServer is supervised by the supervisor and monitored by the companion
Link to this function
start_link(options)
View Source
start_link([option()]) :: GenServer.on_start()