bolsinga / site

SwiftUI Package to display Shows
https://www.bolsinga.com
3 stars 1 forks source link

Declare AtlasGeocodable as Sendable #646

Closed bolsinga closed 11 months ago

bolsinga commented 11 months ago

Fixes:

/Users/bolsinga/Documents/code/git/site/Sources/Site/Music/BatchGeocode.swift:29:47: warning: passing argument of non-sendable type 'T' into actor-isolated context may introduce data races
      let placemark = try await atlas.geocode(geocodable)
                                              ^
/Users/bolsinga/Documents/code/git/site/Sources/Site/Music/BatchGeocode.swift:11:21: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
struct BatchGeocode<T: AtlasGeocodable>: AsyncSequence {
                    ^