ChannelIterator
Iterator for ReceiveChannel. Instances of this interface are not thread-safe and shall not be used from concurrent coroutines.
Functions
hasNext
Link copied to clipboard
Returns true
if the channel has more elements, suspending the caller while this channel is empty, or returns false
if the channel is closed for receive
without a cause. It throws the original close cause exception if the channel has failed.
Sources
common source
Link copied to clipboard