Channel.empty

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.

  1. bool empty [@property getter]
    struct Channel(T, size_t buffer_size = 100)
    @property
    bool
    empty
    ()
  2. bool empty [@property getter]

Meta