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 @@ -698,7 +698,7 @@ public struct UnsafeCurrentTask {
698
698
/// Returns `true` if the task is cancelled, and should stop executing.
699
699
///
700
700
/// - SeeAlso: `checkCancellation()`
701
- public var isCancelled : Bool {
701
+ @ _transparent public var isCancelled : Bool {
702
702
_taskIsCancelled ( _task)
703
703
}
704
704
@@ -796,6 +796,7 @@ func _taskCancel(_ task: Builtin.NativeObject)
796
796
797
797
@available( SwiftStdlib 5.5 , * )
798
798
@_silgen_name ( " swift_task_isCancelled " )
799
+ @usableFromInline
799
800
func _taskIsCancelled( _ task: Builtin . NativeObject ) -> Bool
800
801
801
802
@available ( SwiftStdlib 5 . 5 , * )
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ extension Task {
45
45
/// Returns `true` if the task is cancelled, and should stop executing.
46
46
///
47
47
/// - SeeAlso: `checkCancellation()`
48
- public var isCancelled : Bool {
48
+ @ _transparent public var isCancelled : Bool {
49
49
_taskIsCancelled ( _task)
50
50
}
51
51
}
You can’t perform that action at this time.
0 commit comments