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

Handle composition of Reactors for the builder.

The composition logic was getting complicated enough that it seemed sensible to extract it from the builder - if only to aid readability.

You should not use this module directly, but instead use Reactor.Builder.compose/4.

Summary

Functions

Link to this function

compose(reactor, name, inner_reactor, arguments)

View Source
@spec compose(Reactor.t(), atom(), Reactor.t() | module(), [
  Reactor.Builder.step_argument()
]) ::
  {:ok, Reactor.t()} | {:error, any()}

Compose another Reactor inside this one.

Link to this function

do_static_compose(reactor, name, inner_reactor, arguments)

View Source