Coverage Report

Created: 2025-11-16 06:37

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/rust/registry/src/index.crates.io-1949cf8c6b5b557f/hyper-1.6.0/src/common/task.rs
Line
Count
Source
1
use std::task::{Context, Poll};
2
3
/// A function to help "yield" a future, such that it is re-scheduled immediately.
4
///
5
/// Useful for spin counts, so a future doesn't hog too much time.
6
0
pub(crate) fn yield_now(cx: &mut Context<'_>) -> Poll<std::convert::Infallible> {
7
0
    cx.waker().wake_by_ref();
8
0
    Poll::Pending
9
0
}