pub async fn op_sleep(
    state: Rc<RefCell<OpState>>,
    millis: u64,
    rid: ResourceId
) -> Result<(), AnyError>
Expand description

Waits asynchronously until either millis milliseconds have passed or the TimerHandle resource given by rid has been canceled.