waitMessage<M> method

Future<M> waitMessage<M>()

Waits for a message to arrive and return it.

Implementation

Future<M> waitMessage<M>() => _port.read<M>(isInExecutionContext);