Cizen.Effects.Receive (Cizen v0.18.1) View Source
An effect to receive an event which the saga is received.
Returns the received event.
If the pattern
is omitted, this receives all events.
Example
perform %Subscribe{
pattern: Pattern.new(fn %SomeEvent{} -> true end)
}
perform %Receive{
pattern: Pattern.new(fn %SomeEvent{} -> true end)
}