Search results

There are no results.

std.process.sleep

Show source code
Hide source code
fn pub sleep(time: ref Duration) {
  inko_process_suspend(_INKO.state, _INKO.process, time.to_nanos)
}
fn pub static sleep(time: Duration)

Suspends the current process for at least the given duration.

The actual time the process is suspended for may be larger than the given duration.

If the specified duration is less than or equal to zero, the process is rescheduled immediately.