We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf811fb commit fad2aa9Copy full SHA for fad2aa9
tokio/src/league/mod.rs
@@ -64,8 +64,7 @@ pub(crate) fn ceded() {
64
}
65
66
/// Returns `Poll::Pending` if the current task has exceeded its budget and should yield.
67
-#[allow(unreachable_pub)]
68
-pub fn poll_cooperate(cx: &mut Context<'_>) -> Poll<()> {
+pub(crate) fn poll_cooperate(cx: &mut Context<'_>) -> Poll<()> {
69
HITS.with(|hits| {
70
let n = hits.get();
71
if n == 0 {
@@ -92,8 +91,7 @@ pub fn poll_cooperate(cx: &mut Context<'_>) -> Poll<()> {
92
91
/// }
93
94
/// ```
95
96
-pub async fn cooperate() {
+pub(crate) async fn cooperate() {
97
use crate::future::poll_fn;
98
poll_fn(|cx| poll_cooperate(cx)).await;
99
0 commit comments