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 {
242
242
/// To access the task-local value, use `Baggage.current`.
243
243
///
244
244
/// 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 {
246
246
try Baggage . $current. withValue ( value, operation: operation)
247
247
}
248
248
@@ -251,7 +251,7 @@ extension Baggage {
251
251
/// To access the task-local value, use `Baggage.current`.
252
252
///
253
253
/// 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 {
255
255
try await Baggage . $current. withValue ( value, operation: operation)
256
256
}
257
257
}
You can’t perform that action at this time.
0 commit comments