summaryrefslogtreecommitdiff
path: root/Hutch/Extensions/Foundation+Sendable.swift
blob: 9a12aa63fe506ccc87e30fd5fefa29de581859e7 (plain) (blame)
1
2
3
4
5
6
7
import Foundation

// `UserDefaults` is documented as thread-safe but is not marked `Sendable` by
// Foundation. Hutch passes it into account sessions and the various per-account
// stores, all of which need to cross concurrency boundaries. The retroactive
// unchecked conformance reflects the documented thread-safety.
extension UserDefaults: @retroactive @unchecked Sendable {}