summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Operations
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2023-01-12 12:48:18 +0100
committerAndrej Mihajlov <and@mullvad.net>2023-01-17 10:38:30 +0100
commit64e254bad6becaf30cd53ec24fb9984942b9bcfa (patch)
tree6507caa21f74a386b5319dd81fdfea072aed4f0a /ios/MullvadVPN/Operations
parentf9defadab69084965dcc9c4f9fd194dde250cce4 (diff)
downloadmullvadvpn-64e254bad6becaf30cd53ec24fb9984942b9bcfa.tar.xz
mullvadvpn-64e254bad6becaf30cd53ec24fb9984942b9bcfa.zip
Add helper to create serial operation queue
Diffstat (limited to 'ios/MullvadVPN/Operations')
-rw-r--r--ios/MullvadVPN/Operations/AlertPresenter.swift7
1 files changed, 1 insertions, 6 deletions
diff --git a/ios/MullvadVPN/Operations/AlertPresenter.swift b/ios/MullvadVPN/Operations/AlertPresenter.swift
index b87d8f9698..bb86989d78 100644
--- a/ios/MullvadVPN/Operations/AlertPresenter.swift
+++ b/ios/MullvadVPN/Operations/AlertPresenter.swift
@@ -13,12 +13,7 @@ public final class AlertPresenter {
static let alertControllerDidDismissNotification = Notification
.Name("UIAlertControllerDidDismiss")
- private let operationQueue: OperationQueue = {
- let operationQueue = AsyncOperationQueue()
- operationQueue.name = "AlertPresenterQueue"
- operationQueue.maxConcurrentOperationCount = 1
- return operationQueue
- }()
+ private let operationQueue = AsyncOperationQueue.makeSerial()
private static let initClass: Void = {
/// Swizzle `viewDidDisappear` on `UIAlertController` in order to be able to