//! Runtime primitives for cell execution.
//!
//! Provides deadline-bounded async execution and step management.
//! These are used by generated code from the `cell!` and `#[bounded_async]` macros.
use Future;
use Pin;
use ;
use Duration;
use crateTimeout;
/// Wrap an async operation with a deadline.
///
/// Returns a future that resolves to `Err(Timeout)` if the inner future
/// does not complete within `deadline`. The actual timeout enforcement
/// is provided by the runtime executor — this wrapper records the
/// deadline and delegates cancellation to the executor's timer system.
///
/// Generated by `cell!` macro for `pub async(Duration)` methods and
/// by the `#[bounded_async(Duration)]` attribute.
/// A future wrapped with a deadline.
///
/// The runtime executor inspects `deadline()` to set up cancellation.
/// If the inner future completes first, its result is returned.
/// If the deadline expires, the executor drops this future and the
/// caller receives `Err(Timeout.into())`.
rs/core/src/runtime.rs
π 0.0%