-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add poll_recv method to Receiver (#56)
This PR Adds a `poll_recv()` method to the `Receiver` type. It returns the same `Result<T,RecvError>` type that the `receiver.recv()` future returns (hence the name). This method can be used when defining custom streams that internally make use of `async_broadcast` and want to know about whether the `async_broadcast` stream has overflowed or not.
- Loading branch information
Showing
2 changed files
with
124 additions
and
37 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