mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-22 04:00:39 +00:00
DatabaseRegionObservation is Sendable
This commit is contained in:
1 parent
ce63cdfa60
commit
b4ff52fb7d
3 files changed
+5
-5
No files matched your search
@@ -462,7 +462,7 @@ extension DatabaseRegion {
|
||||
}
|
||||
}
|
||||
|
||||
static func union(_ regions: [any DatabaseRegionConvertible]) -> (Database) throws -> DatabaseRegion {
|
||||
static func union(_ regions: [any DatabaseRegionConvertible]) -> @Sendable (Database) throws -> DatabaseRegion {
|
||||
return { db in
|
||||
try regions.reduce(into: DatabaseRegion()) { union, region in
|
||||
try union.formUnion(region.databaseRegion(db))
|
||||
|
||||
@@ -3,10 +3,10 @@ import Combine
|
||||
#endif
|
||||
import Foundation
|
||||
|
||||
public struct DatabaseRegionObservation {
|
||||
public struct DatabaseRegionObservation: Sendable {
|
||||
/// A closure that is evaluated when the observation starts, and returns
|
||||
/// the observed database region.
|
||||
var observedRegion: (Database) throws -> DatabaseRegion
|
||||
var observedRegion: @Sendable (Database) throws -> DatabaseRegion
|
||||
}
|
||||
|
||||
extension DatabaseRegionObservation {
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
- [X] asyncvalueobservation
|
||||
- [ ] asyncvalueobservation/iterator
|
||||
- [X] asyncvalueobservationscheduler
|
||||
- [ ] belongstoassociation
|
||||
- [X] belongstoassociation
|
||||
- [ ] columnexpression
|
||||
- [ ] commontableexpression
|
||||
- [X] configuration
|
||||
@@ -137,7 +137,7 @@
|
||||
- [-] databasepublishers/read
|
||||
- [-] databasepublishers/value
|
||||
- [-] databasepublishers/write
|
||||
- [ ] databaseregionobservation
|
||||
- [X] databaseregionobservation
|
||||
- [X] databaseuuidencodingstrategy
|
||||
- [X] defaulttransactionclock
|
||||
- [ ] fetchablerecorddecoder
|
||||
|
||||
Reference in new issue
Block a user