Make Configuration.readQoS public

This commit is contained in:
Gwendal Roué authored and Gwendal Roué committed 2022-09-20 17:34:29 +02:00
1 parent dbe50caec5
commit d5b4ed72fa
1 file changed
+7 -2
+7 -2
View File
@@ -248,11 +248,16 @@ public struct Configuration {
/// Default: .userInitiated
public var qos: DispatchQoS = .userInitiated
/// The quality of service of read accesses
var readQoS: DispatchQoS {
/// The quality of service of read database accesses.
public var readQoS: DispatchQoS {
targetQueue?.qos ?? self.qos
}
/// The quality of service of write database accesses.
public var writeQoS: DispatchQoS {
writeTargetQueue?.qos ?? targetQueue?.qos ?? self.qos
}
/// A target queue for database accesses.
///
/// Database connections which are not read-only will prefer