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.
2 parents d5f7f6f + 7c6cc14 commit 22741dbCopy full SHA for 22741db
stdlib/public/Concurrency/TaskLocal.swift
@@ -100,6 +100,7 @@ public macro TaskLocal() =
100
/// func enter() {
101
/// Example.$traceID.withValue("1234") {
102
/// read() // always "1234", regardless if enter() was called from inside a task or not:
103
+/// }
104
/// }
105
///
106
/// func read() -> String {
@@ -157,7 +158,7 @@ public macro TaskLocal() =
157
158
159
160
-/// - SeeAlso: ``TaskLocal-macro``
161
+/// - SeeAlso: ``TaskLocal()-macro``
162
@available(SwiftStdlib 5.1, *)
163
public final class TaskLocal<Value: Sendable>: Sendable, CustomStringConvertible {
164
let defaultValue: Value
0 commit comments