sleep(nanoseconds:)
Suspends the current task for at least the given duration in nanoseconds.
Declaration
static func sleep(nanoseconds duration: UInt64) async throwsDiscussion
If the task is canceled before the time ends, this function throws CancellationError.
This function doesn’t block the underlying thread.