Channel.consumeAll

Attempts to consume all elements currently in the queue.

This function will block if no elements are available. Once at least one element is available, the contents of dst will be replaced with all available elements.

If the empty property is or becomes true before data becomes avaiable, dst will be left untouched and false is returned.

  1. bool consumeAll(FixedRingBuffer!(T, buffer_size) dst)
    struct Channel(T, size_t buffer_size = 100)
    bool
    consumeAll
    (
    ref FixedRingBuffer!(T, buffer_size) dst
    )
  2. bool consumeAll(FixedRingBuffer!(T, buffer_size) dst)

Meta