isShutdown method

ActorBuilder isShutdown(
  1. Actor actor
)

Handle a message if it is an shutdownMsg.

Implementation

ActorBuilder isShutdown(Actor actor) {
  _conditions.add(_Condition(
    (ctx, msg) => msg == shutdownMsg,
    actor,
  ));
  return this;
}