pub fn sleep(io: Io, duration: Duration, clock: Clock) Cancelable!void CanceledCaller has requested the async operation to stop.
2591
2592
2593
2594
2595
2596pub fn sleep(io: Io, duration: Duration, clock: Clock) Cancelable!void {
return io.vtable.sleep(io.userdata, .{ .duration = .{
.raw = duration,
.clock = clock,
} });
}
Waits until a specified amount of time has passed on
clock.See also:
Clock.Duration.sleepClock.Timestamp.waitTimeout.sleep