-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(blocking::mpsc): add
Receiver::recv(_ref)_timeout
methods (#75)
Added recv_timeout methods for `blocking::mpsc::Receiver`/`StaticReceiver`. It requires a simple change from `thread::park` to `thread::park_timeout` & an elapsed time check. We need this functionality so that our threads can wake up at least once every few seconds to check for control events Co-authored-by: Eliza Weisman <[email protected]>
- Loading branch information
1 parent
a0e5740
commit b57ce88
Showing
4 changed files
with
277 additions
and
7 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