ExActor.Responders

Helper macros that can be used for simpler responses from init/call/cast/info handlers.

Source

Summary

initial_state(state)

Can be used from init or definit to return the initial state

new_state(state)

Can be used from handle_call, defcall, handle_info, or definfo to set the new state

noreply()

Can be used from handle_call, defcall, handle_info, or definfo to leave the state unchanged

reply(response)

Can be used from handle_call or defcall to reply without changing the state

set_and_reply(new_state, response)

Can be used from handle_call or defcall to reply and change the state

Macros

initial_state(state)

Can be used from init or definit to return the initial state.

Source
new_state(state)

Can be used from handle_call, defcall, handle_info, or definfo to set the new state.

Source
noreply()

Can be used from handle_call, defcall, handle_info, or definfo to leave the state unchanged.

Source
reply(response)

Can be used from handle_call or defcall to reply without changing the state

Source
set_and_reply(new_state, response)

Can be used from handle_call or defcall to reply and change the state.

Source