Add missing `Sendable` annotations (#148)
# Motivation We were missing a few `Sendable` annotations on our public types. # Modification This PR adds `Sendable` to the missing types.
This commit is contained in:
parent
79e5fb4fe4
commit
d067b0e0f7
|
|
@ -374,8 +374,8 @@ extension Recorder: CustomStringConvertible {
|
||||||
|
|
||||||
// MARK: - Timer
|
// MARK: - Timer
|
||||||
|
|
||||||
public struct TimeUnit: Equatable {
|
public struct TimeUnit: Equatable, Sendable {
|
||||||
private enum Code: Equatable {
|
private enum Code: Equatable, Sendable {
|
||||||
case nanoseconds
|
case nanoseconds
|
||||||
case microseconds
|
case microseconds
|
||||||
case milliseconds
|
case milliseconds
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ public final class TestMetrics: MetricsFactory {
|
||||||
public typealias Label = String
|
public typealias Label = String
|
||||||
public typealias Dimensions = String
|
public typealias Dimensions = String
|
||||||
|
|
||||||
public struct FullKey {
|
public struct FullKey: Sendable {
|
||||||
let label: Label
|
let label: Label
|
||||||
let dimensions: [(String, String)]
|
let dimensions: [(String, String)]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue