File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,13 @@ import Swift
1717/// Execute an operation with a cancellation handler that's immediately
1818/// invoked if the current task is canceled.
1919///
20+ /// - Parameters:
21+ /// - operation: The operation to perform.
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.
25+ /// - isolation: The actor that the operation and cancellation handler are isolated to.
26+ ///
2027/// This differs from the operation cooperatively checking for cancellation
2128/// and reacting to it in that the cancellation handler is _always_ and
2229/// _immediately_ invoked when the task is canceled. For example, even if the
You can’t perform that action at this time.
0 commit comments