Determines whether there is more data to read in a single-reader scenario.
This property is empty iff no more elements are in the internal
buffer and close() has been called. Once the channel is empty,
subsequent calls to consumeOne or consumeAll will throw an
exception.
Note that relying on the return value to determine whether another
element can be read is only safe in a single-reader scenario. It is
generally recommended to use tryConsumeOne instead.
Determines whether there is more data to read in a single-reader scenario.
This property is empty iff no more elements are in the internal buffer and close() has been called. Once the channel is empty, subsequent calls to consumeOne or consumeAll will throw an exception.
Note that relying on the return value to determine whether another element can be read is only safe in a single-reader scenario. It is generally recommended to use tryConsumeOne instead.