listen method Null safety

  1. @override
Future listen(
  1. String? correlationId,
  2. IMessageReceiver receiver
)
override

Listens for incoming messages and blocks the current thread until _queue is closed. Parameters:

  • correlationId (optional) transaction id to trace execution through call chain. Returns Future that recive null on compleate Throws error