|
13 | 13 | // |
14 | 14 | //===----------------------------------------------------------------------===// |
15 | 15 |
|
16 | | -#if swift(>=5.5) && canImport(_Concurrency) |
17 | | -public typealias _Baggage_Sendable = Swift.Sendable |
18 | | -#else |
19 | | -public typealias _Baggage_Sendable = Any |
20 | | -#endif |
21 | | - |
22 | 16 | /// A `Baggage` is a heterogeneous storage type with value semantics for keyed values in a type-safe fashion. |
23 | 17 | /// |
24 | 18 | /// Its values are uniquely identified via `BaggageKey`s (by type identity). These keys also dictate the type of |
@@ -71,8 +65,8 @@ public typealias _Baggage_Sendable = Any |
71 | 65 | /// `Baggage` does not expose more functions on purpose to prevent abuse and treating it as too much of an |
72 | 66 | /// arbitrary value smuggling container, but only make it convenient for tracing and instrumentation systems which need |
73 | 67 | /// to access either specific or all items carried inside a baggage. |
74 | | -public struct Baggage: _Baggage_Sendable { |
75 | | - private var _storage = [AnyBaggageKey: _Baggage_Sendable]() |
| 68 | +public struct Baggage { |
| 69 | + private var _storage = [AnyBaggageKey: Any]() |
76 | 70 |
|
77 | 71 | /// Internal on purpose, please use `Baggage.TODO` or `Baggage.topLevel` to create an "empty" baggage, |
78 | 72 | /// which carries more meaning to other developers why an empty baggage was used. |
@@ -157,7 +151,7 @@ extension Baggage { |
157 | 151 |
|
158 | 152 | /// Carried automatically by a "to do" baggage. |
159 | 153 | /// It can be used to track where a baggage originated and which "to do" baggage must be fixed into a real one to avoid this. |
160 | | -public struct TODOLocation: _Baggage_Sendable { |
| 154 | +public struct TODOLocation { |
161 | 155 | /// Source file location where the to-do `Baggage` was created |
162 | 156 | public let file: String |
163 | 157 | /// Source line location where the to-do `Baggage` was created |
|
0 commit comments