receive method Null safety

  1. @override
Future<MessageEnvelope> receive(
  1. String? correlationId,
  2. int waitTimeout
)
override

Receive method are receives an incoming message and removes it from the _queue. Parameters:

  • correlationId (optional) transaction id to trace execution through call chain.
  • waitTimeout a timeout in milliseconds to wait for a message to come. Return Future that recive a message Throws error