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.
2 parents 34c07d0 + 19e3f64 commit 829f5b1Copy full SHA for 829f5b1
stdlib/public/Concurrency/Task.swift
@@ -796,6 +796,7 @@ func _taskCancel(_ task: Builtin.NativeObject)
796
797
@available(SwiftStdlib 5.5, *)
798
@_silgen_name("swift_task_isCancelled")
799
+@usableFromInline
800
func _taskIsCancelled(_ task: Builtin.NativeObject) -> Bool
801
802
stdlib/public/Concurrency/TaskCancellation.swift
@@ -45,7 +45,7 @@ extension Task {
45
/// Returns `true` if the task is cancelled, and should stop executing.
46
///
47
/// - SeeAlso: `checkCancellation()`
48
- public var isCancelled: Bool {
+ @_transparent public var isCancelled: Bool {
49
_taskIsCancelled(_task)
50
}
51
0 commit comments