Channel.tryConsumeOne

Attempts to consume a single element.

If no more elements are available and the channel has been closed, false is returned and dst is left untouched.

  1. bool tryConsumeOne(T dst)
  2. bool tryConsumeOne(T dst)
    struct Channel(T, size_t buffer_size = 100)
    shared
    bool
    tryConsumeOne
    (
    ref T dst
    )

Meta