Skip to content

Commit

Permalink
fix: Make sure a TolerantDispatchGroup has a default QoS that prevent…
Browse files Browse the repository at this point in the history
…s most priority inversions
  • Loading branch information
adrien-coye committed Jan 31, 2024
1 parent 32b0630 commit 5ff0aaa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ public final class TolerantDispatchGroup {
private let dispatchGroup = DispatchGroup()
private var callBalancer = 0

public init(qos: DispatchQoS = .default) {
/// Init method of TolerantDispatchGroup
/// - Parameter qos: The QoS of the underlying queue. Default to `.userInitiated` to prevent most priority inversions
public init(qos: DispatchQoS = .userInitiated) {
syncQueue = DispatchQueue(label: "com.infomaniak.TolerantDispatchGroup", qos: qos)
}

Expand Down

0 comments on commit 5ff0aaa

Please sign in to comment.