ExActor v2.2.4 ExActor.Responders
Helper macros that can be used for simpler responses from init/call/cast/info handlers.
Summary
Macros
Ensures that :hibernate
will be included in each return tuple
Sets the initial state
Sets the new state
Leaves the state unchanged
Replies without changing the state
Replies and sets the new state
Stops the server
Ensures that timeout will be included in each return tuple
Macros
Ensures that :hibernate
will be included in each return tuple.
Must be called from ExActor.Operations.defstart/2
(or definit
).
This works only for return tuples made by macros from this module. If you’re
creating standard gen_server
response manually, it’s your responsibility to
include the :hibernate
, or override it if you want to.
Sets the initial state.
Applicable in:
Sets the new state.
Applicable in:
Leaves the state unchanged.
Applicable in:
Replies without changing the state.
Applicable in:
Replies and sets the new state
Applicable in:
Stops the server.
Applicable in:
Ensures that timeout will be included in each return tuple.
Must be called from ExActor.Operations.defstart/2
(or definit
).
This works only for return tuples made by macros from this module. If you’re
creating standard gen_server
response manually, it’s your responsibility to
include the timeout, or override it if you want to.