From ed3c597a92ec751a0b6dfc1abb729d6dafb69d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 18 Jun 2017 18:18:29 +0200 Subject: [PATCH] Documentation --- GRDB/Core/Database.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/GRDB/Core/Database.swift b/GRDB/Core/Database.swift index 2913f43ce..5e7b0efbe 100644 --- a/GRDB/Core/Database.swift +++ b/GRDB/Core/Database.swift @@ -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: () -> ()