Skip to content

Commit 09bbcdd

Browse files
amartini51ktoso
andcommitted
Include at-most-once
Co-authored-by: Konrad Malawski <[email protected]>
1 parent a3994ec commit 09bbcdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/public/Concurrency/TaskCancellation.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ import Swift
1919
///
2020
/// - Parameters:
2121
/// - operation: The operation to perform.
22-
/// - handler: A closure to execute, once, if the operation is canceled.
22+
/// - handler: A closure to execute on cancellation.
23+
/// If the task is canceled, this closure is called at most once;
24+
/// otherwise, it isn't called.
2325
/// - isolation: The actor that the operation and cancellation handler are isolated to.
2426
///
2527
/// This differs from the operation cooperatively checking for cancellation

0 commit comments

Comments
 (0)