Skip to content

Commit 829f5b1

Browse files
authored
Merge pull request swiftlang#39719 from DougGregor/back-deploy-is-cancelled-fix
2 parents 34c07d0 + 19e3f64 commit 829f5b1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

stdlib/public/Concurrency/Task.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ func _taskCancel(_ task: Builtin.NativeObject)
796796

797797
@available(SwiftStdlib 5.5, *)
798798
@_silgen_name("swift_task_isCancelled")
799+
@usableFromInline
799800
func _taskIsCancelled(_ task: Builtin.NativeObject) -> Bool
800801

801802
@available(SwiftStdlib 5.5, *)

stdlib/public/Concurrency/TaskCancellation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extension Task {
4545
/// Returns `true` if the task is cancelled, and should stop executing.
4646
///
4747
/// - SeeAlso: `checkCancellation()`
48-
public var isCancelled: Bool {
48+
@_transparent public var isCancelled: Bool {
4949
_taskIsCancelled(_task)
5050
}
5151
}

0 commit comments

Comments
 (0)