Gentry v0.1.1 Gentry.WorkerSupervisor View Source
Support running a transient child/worker process.
A more convenient interface is with Gentry.Supervisor
and Gentry
.
Use this if an async interface is needed. Use the Gentry
module as
a guide to what messages to expect.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
A function is expected for task_function
. The value of runner_pid
is usually self()
and will receive the messages sent as a result of
working on task_function
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
A function is expected for task_function
. The value of runner_pid
is usually self()
and will receive the messages sent as a result of
working on task_function
.
{:ok, result}
- The task ran successfully and returnedresult
{:error, error}
- The task failed with reason,error