//! Deno ops for timer functionality (setTimeout, setInterval)
//!
//! Provides a simple async sleep op that JavaScript uses to implement timers.
use op2;
use Duration;
/// Sleep for the specified number of milliseconds
///
/// This async op is used by the JavaScript layer to implement setTimeout and setInterval.
/// It simply waits for the specified duration before resolving.
pub async