predicate method

bool predicate(
  1. ActorContext ctx,
  2. Object? msg
)

Implementation

bool predicate(ActorContext ctx, Object? msg) {
  final correlationId = ctx.correlationId;
  if (correlationId == null) {
    return false;
  }
  return _pendingProtocols.containsKey(correlationId);
}