ShotTx.Prover.Worker (ShotTx v0.0.1)

Copy Markdown View Source

Long-lived worker process that steals branch data from an ETS queue, processes it using the pure Branch module, and applies resulting side effects.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts a worker process.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

Starts a worker process.

opts must contain :session_id and :worker_id. Additional keys are written straight into the %__MODULE__{} state; see init/1 and the struct default values above for the accepted fields.