View Source Mammoth.DefaultCallbackHandler (mammoth v0.4.6)
Default callback handler, useful for basic testing, and as a complete example for how to implement your own callback handler
example
Example
{:ok, callback_pid} = Mammoth.DefaultCallbackHandler.start_link
{:ok, mammoth_pid} = Mammoth.start_link(callback_pid)
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.init/1
.
Set Mammoth PID. This is to make examples simpler to follow, my recommendation is instead to start and link Mammoth from within your own callback genserver implementation
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Callback implementation for GenServer.init/1
.
Set Mammoth PID. This is to make examples simpler to follow, my recommendation is instead to start and link Mammoth from within your own callback genserver implementation