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:
Franz Busch 2024-06-20 21:40:32 +01:00 committed by GitHub
parent 79e5fb4fe4
commit d067b0e0f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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)]
} }