File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/InstrumentationBaggage Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ extension Baggage {
242242 /// To access the task-local value, use `Baggage.current`.
243243 ///
244244 /// SeeAlso: [Swift Task Locals](https://developer.apple.com/documentation/swift/tasklocal)
245- func withValue< T> ( _ value: Baggage ? , operation: ( ) throws -> T ) rethrows -> T {
245+ public static func withValue< T> ( _ value: Baggage ? , operation: ( ) throws -> T ) rethrows -> T {
246246 try Baggage . $current. withValue ( value, operation: operation)
247247 }
248248
@@ -251,7 +251,7 @@ extension Baggage {
251251 /// To access the task-local value, use `Baggage.current`.
252252 ///
253253 /// SeeAlso: [Swift Task Locals](https://developer.apple.com/documentation/swift/tasklocal)
254- func withValue< T> ( _ value: Baggage ? , operation: ( ) async throws -> T ) async rethrows -> T {
254+ public static func withValue< T> ( _ value: Baggage ? , operation: ( ) async throws -> T ) async rethrows -> T {
255255 try await Baggage . $current. withValue ( value, operation: operation)
256256 }
257257}
You can’t perform that action at this time.
0 commit comments