mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
Documentation
This commit is contained in:
1 parent
cbb607b6b0
commit
ed3c597a92
1 file changed
+5
-5
@@ -1835,13 +1835,13 @@ extension Database {
|
||||
}
|
||||
}
|
||||
|
||||
/// Registers a closure to be executed after the next or current transaction
|
||||
/// successfully commits.
|
||||
/// Registers a closure to be executed after the next or current
|
||||
/// transaction completion.
|
||||
///
|
||||
/// If the transaction is rollbacked, the closure will never be executed.
|
||||
/// If the transaction is rollbacked, the closure is not executed.
|
||||
///
|
||||
/// The closure is eventualy executed in a protected dispatch queue,
|
||||
/// serialized will all database updates.
|
||||
/// If the transaction is committed, the closure is executed in a protected
|
||||
/// dispatch queue, serialized will all database updates.
|
||||
public func afterCommit(_ closure: @escaping () -> ()) {
|
||||
class CommitHandler : TransactionObserver {
|
||||
let closure: () -> ()
|
||||
|
||||
Reference in new issue
Block a user