Cizen v0.12.5 Cizen.Effects.Subscribe View Source
An effect to subscribe messages.
Returns :ok.
Example
perform id, %Subscribe{
event_filter: Filter.new(fn %Event{body: %SomeEvent{}} -> true end),
lifetime_saga_id: some_saga_id
}
An effect to subscribe messages.
Returns :ok.
perform id, %Subscribe{
event_filter: Filter.new(fn %Event{body: %SomeEvent{}} -> true end),
lifetime_saga_id: some_saga_id
}