View Source Reactor.Builder.Step (reactor v0.4.0)

Handle building and adding steps to Reactors for the builder.

You should not use this module directly, but instead use Reactor.Builder.new_step/4 and Reactor.Builder.add_step/5.

Summary

Functions

Build and add a new step to a Reactor.

Dynamically build a new step for later use.

Functions

Link to this function

add_step(reactor, name, impl, arguments, options)

View Source
@spec add_step(
  Reactor.t(),
  any(),
  Reactor.Builder.impl(),
  [Reactor.Builder.step_argument()],
  Reactor.Builder.step_options()
) :: {:ok, Reactor.t()} | {:error, any()}

Build and add a new step to a Reactor.

Link to this function

new_step(name, impl, arguments, options)

View Source

Dynamically build a new step for later use.

You're most likely to use this when dynamically returning new steps from an existing step.