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.
1 parent 68418cd commit a8d119aCopy full SHA for a8d119a
stdlib/public/Concurrency/TaskLocal.swift
@@ -95,8 +95,7 @@ import Swift
95
/// value for lookups in the task local storage.
96
@propertyWrapper
97
@available(SwiftStdlib 5.5, *)
98
-// TODO: add Sendable enforcement when we're ready to do so rdar://77441933
99
-public final class TaskLocal<Value>: UnsafeSendable, CustomStringConvertible {
+public final class TaskLocal<Value: Sendable>: Sendable, CustomStringConvertible {
100
let defaultValue: Value
101
102
public init(wrappedValue defaultValue: Value) {
0 commit comments