File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -754,7 +754,7 @@ public struct UnsafeCurrentTask {
754
754
/// There is no way to uncancel a task.
755
755
///
756
756
/// - SeeAlso: `checkCancellation()`
757
- public var isCancelled : Bool {
757
+ @ _transparent public var isCancelled : Bool {
758
758
_taskIsCancelled ( _task)
759
759
}
760
760
@@ -860,6 +860,7 @@ func _taskCancel(_ task: Builtin.NativeObject)
860
860
861
861
@available( SwiftStdlib 5.5 , * )
862
862
@_silgen_name ( " swift_task_isCancelled " )
863
+ @usableFromInline
863
864
func _taskIsCancelled( _ task: Builtin . NativeObject ) -> Bool
864
865
865
866
@available ( SwiftStdlib 5 . 5 , * )
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ extension Task {
50
50
/// There is no way to uncancel a task.
51
51
///
52
52
/// - SeeAlso: `checkCancellation()`
53
- public var isCancelled : Bool {
53
+ @ _transparent public var isCancelled : Bool {
54
54
_taskIsCancelled ( _task)
55
55
}
56
56
}
You can’t perform that action at this time.
0 commit comments