Try to immediately pull a message off of the queue, without blocking.
Declared in <folly/io/async/NotificationQueue.h>
bool
tryConsume(MessageT& result);
If a message is immediately available, the result parameter will be updated to contain the message contents and true will be returned.
If no message is available, false will be returned and result will be left unmodified.
True if a message was consumed, false otherwise.
| Name | Description |
|---|---|
| result | Set to the message contents when one is available. |