vibe.d beta banner
get vibe.d
0.8.5

Asynchronous I/O that doesn’t get in your way, written in D

Function Channel.tryConsumeOne

Attempts to consume a single element.

bool tryConsumeOne (
  ref T dst
);

bool tryConsumeOne (
  ref T dst
) shared;

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

Authors

Sönke Ludwig

Copyright

© 2017-2019 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.