Skip to content

Commit 3222322

Browse files
authored
Merge pull request #39508 from DougGregor/sendable-unsafe-continuation
2 parents c644c6a + 60763a0 commit 3222322

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stdlib/public/Concurrency/CheckedContinuation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ internal final class CheckedContinuationCanary {
110110
/// enough to obtain the extra checking without further source modification in
111111
/// most circumstances.
112112
@available(SwiftStdlib 5.5, *)
113-
public struct CheckedContinuation<T, E: Error> {
113+
public struct CheckedContinuation<T, E: Error>: UnsafeSendable {
114114
private let canary: CheckedContinuationCanary
115115

116116
/// Initialize a `CheckedContinuation` wrapper around an

stdlib/public/Concurrency/PartialAsyncTask.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal func _swiftJobRun(_ job: UnownedJob,
2222
/// A job is a unit of scheduleable work.
2323
@available(SwiftStdlib 5.5, *)
2424
@frozen
25-
public struct UnownedJob {
25+
public struct UnownedJob: Sendable {
2626
private var context: Builtin.Job
2727

2828
@_alwaysEmitIntoClient
@@ -34,7 +34,7 @@ public struct UnownedJob {
3434

3535
@available(SwiftStdlib 5.5, *)
3636
@frozen
37-
public struct UnsafeContinuation<T, E: Error> {
37+
public struct UnsafeContinuation<T, E: Error>: Sendable {
3838
@usableFromInline internal var context: Builtin.RawUnsafeContinuation
3939

4040
@_alwaysEmitIntoClient

0 commit comments

Comments
 (0)