Cizen v0.10.0 Cizen.EffectHandler View Source
Handles effects.
Link to this section Summary
Link to this section Types
Link to this type
state()
View Source
state() :: %{ handler: Cizen.SagaID.t(), effect: Cizen.Effect.t() | nil, effect_state: term(), event_buffer: [Cizen.Event.t()] }
Link to this section Functions
Link to this function
feed_event(state, event)
View Source
feed_event(state(), Cizen.Event.t()) :: resolve() | state()
Link to this function
perform_effect(state, effect)
View Source
perform_effect(state(), Cizen.Effect.t()) :: resolve() | state()