Skip to main content

Home > flowp > Channel > tryReceive

Channel.tryReceive() method

try receive one message

Signature:

tryReceive(): T | undefined;

Returns:

T | undefined

message T or undefined if no messages in the queue