//! Sleep trait for delaying execution.
//!
//! This module provides a trait for sleeping in async contexts that can be
//! implemented by different async runtimes.
use Future;
/// Trait for sleeping and delaying execution.
///
/// This trait provides a runtime-agnostic way to sleep for a duration or until a specific time.
///
/// # Type Parameters
///
/// * `D` - The duration type
/// * `T` - The time type