Skip to content

Commit 73e5806

Browse files
committed
[SE-0304] Clarify documentation of Task.sleep(nanoseconds:) slightly
1 parent 16b2f1d commit 73e5806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/TaskSleep.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ extension Task where Success == Never, Failure == Never {
7676

7777
/// Suspends the current task for _at least_ the given duration
7878
/// in nanoseconds, unless the task is cancelled. If the task is cancelled,
79-
/// throws \c CancellationError.
79+
/// throws \c CancellationError without waiting for the duration.
8080
///
8181
/// This function does _not_ block the underlying thread.
8282
public static func sleep(nanoseconds duration: UInt64) async throws {

0 commit comments

Comments
 (0)