orActor method

Actor orActor(
  1. Actor actor
)

Creates the actor. If no condition is met, the message is delegated to the given actor.

Implementation

Actor orActor(Actor actor) {
  _conditions.add(_Condition(
    (ctx, msg) => true,
    actor,
  ));
  return _actor();
}