Spectre.EffectConfig (Spectre v0.3.0)

Copy Markdown View Source

Resolves extension-contributed executors for non-action effect kinds.

Summary

Functions

Resolves the executor registered for kind.

Returns every non-action executor visible to an Agent.

Functions

executor(agent, kind)

@spec executor(module(), atom()) ::
  {:ok, Spectre.Effect.Executor.Mount.t()} | {:error, term()}

Resolves the executor registered for kind.

executors(agent)

@spec executors(module()) :: [Spectre.Effect.Executor.Mount.t()]

Returns every non-action executor visible to an Agent.