-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support timed dequeues in coro queues
Summary: Adding `co_try_dequeue_for(duration)` to the queue API's. Similar to `fibers::Semaphore::co_try_wait_for()` this helps prevent the mistake of wrapping calls to `dequeue` with `timeout()` instead of `timeoutNoDiscard()` Reviewed By: iahs Differential Revision: D69140972 fbshipit-source-id: 217037def69f07876c3bd4fc3dcea58d2cae6d15
- Loading branch information
1 parent
4a8630b
commit 7fd73ff
Showing
4 changed files
with
120 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters