Stone v0.2.0 Stone.Responders
Various macros useful for returning simpler responses from init/call/cast/info handlers.
Summary
Macros
Set initial state of the actor.
Should be used in definit
/defstart
Set initial state of the actor and timeout for initialization.
Should be used in definit
/defstart
.
Allows for setting a timeout
Return this, when you don’t care about the initial state of the actor.
Should be used in definit
/defstart
Macros
Set initial state of the actor.
Should be used in definit
/defstart
.
Examples
iex> Stone.Responders.initial_state(1)
{:ok, 1}
Set initial state of the actor and timeout for initialization.
Should be used in definit
/defstart
.
Allows for setting a timeout.