DarkFlows.Workflow (DarkFlows v1.0.2) View Source

DarkFlows.Workflow

Link to this section Summary

Functions

Helper for extracting a context value via partial application.

Link to this section Types

Specs

context() ::
  map() | %{required(atom()) => any()} | %{required(String.t()) => any()}

Specs

failed_multi() :: %{
  failed_operation: atom(),
  failed_value: any(),
  changes_so_far: map()
}

Specs

opts() :: Keyword.t()

Specs

result() :: {:ok, context()} | {:error, Opus.PipelineError.t()}

Specs

step_fun() :: (any() -> any())

Specs

step_result() ::
  context() | {:error, atom()} | {:error, failed_multi()} | {:error, any()}

Link to this section Functions

Specs

within(atom(), step_fun()) :: (context() -> any())

Helper for extracting a context value via partial application.