ProtocolInit typedef

ProtocolInit = FutureOr<void> Function(ActorContext ctx, String correlationId)

A function to execute the initial step of a protocol. Usually, a message is sent to another actor. It is important to pass the correlationId to the message so that the response can be correlated to the initial message.

Implementation

typedef ProtocolInit = FutureOr<void> Function(ActorContext ctx, String correlationId);