Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/hyper/src/common/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 381 B image not shown  

Quelle  task.rs   Sprache: unbekannt

 
#[cfg(feature = "http1")]
use super::Never;
pub(crate) use std::task::{Context, Poll};

/// A function to help "yield" a future, such that it is re-scheduled immediately.
///
/// Useful for spin counts, so a future doesn't hog too much time.
#[cfg(feature = "http1")]
pub(crate) fn yield_now(cx: &mut Context<'_>) -> Poll<Never> {
    cx.waker().wake_by_ref();
    Poll::Pending
}

[ Dauer der Verarbeitung: 0.16 Sekunden  (vorverarbeitet)  ]