orSkip method

Actor orSkip()

Creates the actor. If no condition is met, the message is skipped.

Implementation

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