tryReceive abstract method

Future<T?> tryReceive({
  1. T? onClose,
})

Reads one value from the channel. Returns null or onClose if the channel has no value and it is closed.

Implementation

Future<T?> tryReceive({T? onClose});