View Source Reactor.Builder.Input (reactor v0.10.2)

Handle adding inputs to Reactors for the builder.

You should not use this module directly, but instead use Reactor.Builder.add_input/3.

Summary

Functions

Add a named input to the reactor.

Functions

Link to this function

add_input(reactor, name, transform)

View Source
@spec add_input(
  Reactor.t(),
  any(),
  nil | (any() -> any()) | {Reactor.Step.step(), keyword()}
) ::
  {:ok, Reactor.t()} | {:error, any()}

Add a named input to the reactor.