Documentation

This commit is contained in:
Gwendal Roué committed 2016-03-12 08:27:51 +01:00
1 parent 62a37ac1f4
commit eecaa2a394
1 file changed
+7
+7
View File
@@ -48,6 +48,13 @@ final class SerializedDatabase {
database.dispatchQueueID = dispatchQueueID
}
/// Synchronously executes a block a serialized dispatch queue, and returns
/// its result.
///
/// This method is *not* reentrant.
///
/// - parameter block: A block that accesses the database.
/// - throws: The error thrown by the block.
func inDatabase<T>(block: (db: Database) throws -> T) rethrows -> T {
// This method is NOT reentrant.
//