We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77db003 commit a3994ecCopy full SHA for a3994ec
stdlib/public/Concurrency/TaskCancellation.swift
@@ -17,6 +17,11 @@ import Swift
17
/// Execute an operation with a cancellation handler that's immediately
18
/// invoked if the current task is canceled.
19
///
20
+/// - Parameters:
21
+/// - operation: The operation to perform.
22
+/// - handler: A closure to execute, once, if the operation is canceled.
23
+/// - isolation: The actor that the operation and cancellation handler are isolated to.
24
+///
25
/// This differs from the operation cooperatively checking for cancellation
26
/// and reacting to it in that the cancellation handler is _always_ and
27
/// _immediately_ invoked when the task is canceled. For example, even if the
0 commit comments