Reactor.Builder.Compose (reactor v0.12.1)

View Source

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

Compose another Reactor inside this one.

Functions

compose(reactor, name, inner_reactor, arguments, options)

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

Compose another Reactor inside this one.

Options

  • :guards (list of value that implements the Reactor.Guard.Build protocol) - The default value is [].