Skip to content

Commit f6ba1bb

Browse files
committed
Adopt _unsafeInheritExecutor_ workaround on the internal withValueImpl
1 parent 4c605a2 commit f6ba1bb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

stdlib/public/Concurrency/TaskLocal.swift

+5-3
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,11 @@ public final class TaskLocal<Value: Sendable>: Sendable, CustomStringConvertible
270270
@_unsafeInheritExecutor // internal for backwards compatibility; though may be able to be removed safely?
271271
@available(SwiftStdlib 5.1, *)
272272
@backDeployed(before: SwiftStdlib 5.9)
273-
internal func withValueImpl<R>(_ valueDuringOperation: __owned Value,
274-
operation: () async throws -> R,
275-
file: String = #fileID, line: UInt = #line) async rethrows -> R {
273+
internal func _unsafeInheritExecutor_withValueImpl<R>(
274+
_ valueDuringOperation: __owned Value,
275+
operation: () async throws -> R,
276+
file: String = #fileID, line: UInt = #line
277+
) async rethrows -> R {
276278
_taskLocalValuePush(key: key, value: consume valueDuringOperation)
277279
defer { _taskLocalValuePop() }
278280

0 commit comments

Comments
 (0)