mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
writePublisher(updates:thenRead:) requires a Sendable Value
... But I don't know if region-based isolation and SE-0430 can relax this constraint or not.
This commit is contained in:
1 parent
e6a7d7dad4
commit
cfd4a71efa
1 file changed
+2
-1
@@ -772,6 +772,7 @@ extension DatabaseWriter {
|
||||
.eraseToWritePublisher()
|
||||
}
|
||||
|
||||
// TODO: GRDB7 Can SE-0430 avoid the T: Sendable constraint?
|
||||
/// Returns a publisher that publishes one value and completes.
|
||||
///
|
||||
/// The database is not accessed until subscription. Value and completion
|
||||
@@ -826,7 +827,7 @@ extension DatabaseWriter {
|
||||
updates: @escaping @Sendable (Database) throws -> T,
|
||||
thenRead value: @escaping @Sendable (Database, T) throws -> Output)
|
||||
-> DatabasePublishers.Write<Output>
|
||||
where S: Scheduler
|
||||
where S: Scheduler, T: Sendable
|
||||
{
|
||||
OnDemandFuture { fulfill in
|
||||
self.asyncWriteWithoutTransaction { db in
|
||||
|
||||
Reference in new issue
Block a user