Counterpoint.CommandWithEffectRunner (counterpoint v0.1.0)

Copy Markdown View Source

Executes a Counterpoint.CommandWithEffect with a fixed set of dependencies.

Unlike Counterpoint.CommandRunner, this runner does not retry on optimistic-concurrency failures. Add retry logic in the caller if needed.

Example

runner = Counterpoint.CommandWithEffectRunner.new(:my_store, %{mailer: MyApp.Mailer})
Counterpoint.CommandWithEffectRunner.run(runner, cmd)

Summary

Functions

Create a runner bound to store_name and deps.

Execute command using the store and deps captured in runner.

Functions

new(store_name, deps)

Create a runner bound to store_name and deps.

run(arg, command)

Execute command using the store and deps captured in runner.