From 8f03b5c8f3d986080f5cd0f485e8f58bb331674c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 17 Nov 2019 17:41:55 +0100 Subject: [PATCH] Improve Configuration.targetQueue documentation - #651 --- GRDB/Core/Configuration.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/GRDB/Core/Configuration.swift b/GRDB/Core/Configuration.swift index 88ae224aa..bd72ee6e8 100644 --- a/GRDB/Core/Configuration.swift +++ b/GRDB/Core/Configuration.swift @@ -164,7 +164,15 @@ public struct Configuration { /// Default: .default (.unspecified on macOS < 10.10) public var qos: DispatchQoS - /// The target queue for the work performed by the database. + /// The target queue for all database accesses. + /// + /// When you use a database pool, make sure the queue is concurrent. If + /// it is serial, no concurrent database access can happen, and you may + /// experience deadlocks. + /// + /// If the queue is nil, all database accesses happen in unspecified + /// dispatch queues whose quality of service and label are determined by the + /// `qos` and `label` Configuration properties. /// /// Default: nil public var targetQueue: DispatchQueue? = nil