Cizen v0.9.0 Cizen.SagaRegistry View Source
A key-value saga storage.
It works like Registry
.
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
dispatch(registry, key, mfa_or_fun, opts \\ [])
View Source
dispatch(registry(), key(), dispatcher(), keyword()) :: :ok
Link to this function
keys(registry, saga_id)
View Source
keys(registry(), Cizen.SagaID.t()) :: [value()]
Link to this function
register(registry, saga_id, key, value)
View Source
register(registry(), Cizen.SagaID.t(), key(), value()) :: {:ok, pid()} | {:error, {:already_registered, Cizen.SagaID.t()}} | {:error, :no_saga}
Link to this function
unregister(registry, saga_id, key)
View Source
unregister(registry(), Cizen.SagaID.t(), key()) :: :ok | {:error, :no_saga}