forked from tokio-rs/tokio
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coop: expose an unconstrained() opt-out
This adds an opt-out for code that might not be compatible with Tokio coop (e.g. heavily nested `FuturesUnordered`). Notes to reviewer: - I added doc tests for this, relying on the fact that `with_budget` already has a bunch of test coverage. Let me know if that's not sufficient. - I removed a few docs in the coop module that reference methods that don't exist yet since this PR makes that module public. See the discussion in: tokio-rs#3516
- Loading branch information
Showing
2 changed files
with
44 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -372,7 +372,7 @@ cfg_rt! { | |
pub mod runtime; | ||
} | ||
|
||
pub(crate) mod coop; | ||
pub mod coop; | ||
|
||
cfg_signal! { | ||
pub mod signal; | ||
|