ProtocolOnMessage<M> typedef

ProtocolOnMessage<M> = FutureOr<bool> Function(ActorContext ctx, M msg)

A function to execute the next step of a protocol. The function should return true if the protocol is complete.

Implementation

typedef ProtocolOnMessage<M> = FutureOr<bool> Function(ActorContext ctx, M msg);