mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +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
|
return { db in
|
||||||
try regions.reduce(into: DatabaseRegion()) { union, region in
|
try regions.reduce(into: DatabaseRegion()) { union, region in
|
||||||
try union.formUnion(region.databaseRegion(db))
|
try union.formUnion(region.databaseRegion(db))
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ import Combine
|
|||||||
#endif
|
#endif
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
public struct DatabaseRegionObservation {
|
public struct DatabaseRegionObservation: Sendable {
|
||||||
/// A closure that is evaluated when the observation starts, and returns
|
/// A closure that is evaluated when the observation starts, and returns
|
||||||
/// the observed database region.
|
/// the observed database region.
|
||||||
var observedRegion: (Database) throws -> DatabaseRegion
|
var observedRegion: @Sendable (Database) throws -> DatabaseRegion
|
||||||
}
|
}
|
||||||
|
|
||||||
extension DatabaseRegionObservation {
|
extension DatabaseRegionObservation {
|
||||||
|
|||||||
@@ -116,7 +116,7 @@
|
|||||||
- [X] asyncvalueobservation
|
- [X] asyncvalueobservation
|
||||||
- [ ] asyncvalueobservation/iterator
|
- [ ] asyncvalueobservation/iterator
|
||||||
- [X] asyncvalueobservationscheduler
|
- [X] asyncvalueobservationscheduler
|
||||||
- [ ] belongstoassociation
|
- [X] belongstoassociation
|
||||||
- [ ] columnexpression
|
- [ ] columnexpression
|
||||||
- [ ] commontableexpression
|
- [ ] commontableexpression
|
||||||
- [X] configuration
|
- [X] configuration
|
||||||
@@ -137,7 +137,7 @@
|
|||||||
- [-] databasepublishers/read
|
- [-] databasepublishers/read
|
||||||
- [-] databasepublishers/value
|
- [-] databasepublishers/value
|
||||||
- [-] databasepublishers/write
|
- [-] databasepublishers/write
|
||||||
- [ ] databaseregionobservation
|
- [X] databaseregionobservation
|
||||||
- [X] databaseuuidencodingstrategy
|
- [X] databaseuuidencodingstrategy
|
||||||
- [X] defaulttransactionclock
|
- [X] defaulttransactionclock
|
||||||
- [ ] fetchablerecorddecoder
|
- [ ] fetchablerecorddecoder
|
||||||
|
|||||||
Reference in new issue
Block a user