forked from tokio-rs/tokio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend documentation for watch::Receiver<_>::wait_for
- The "Cancel safety" section was missing, as reported in tokio-rs#7021. - Add the "Panics" section since technically the method can panic. - Change the doctest to mimic the one for `changed` (also I find the current version slightly more confusing than it should be).
- Loading branch information
Showing
1 changed file
with
20 additions
and
16 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