MCPcopy Create free account
hub / github.com/bytecodealliance/wstd / sleep_until

Function sleep_until

src/task.rs:11–13  ·  view source on GitHub ↗

Sleeps until the specified instant.

(deadline: Instant)

Source from the content-addressed store, hash-verified

9
10/// Sleeps until the specified instant.
11pub fn sleep_until(deadline: Instant) -> Wait {
12 Timer::at(deadline).wait()
13}

Callers 1

into_futureMethod · 0.85

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected