diff options
Diffstat (limited to 'ios/Operations/MutuallyExclusive.swift')
| -rw-r--r-- | ios/Operations/MutuallyExclusive.swift | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ios/Operations/MutuallyExclusive.swift b/ios/Operations/MutuallyExclusive.swift new file mode 100644 index 0000000000..b9097d3420 --- /dev/null +++ b/ios/Operations/MutuallyExclusive.swift @@ -0,0 +1,25 @@ +// +// MutuallyExclusive.swift +// Operations +// +// Created by pronebird on 25/09/2022. +// Copyright © 2022 Mullvad VPN AB. All rights reserved. +// + +import Foundation + +public final class MutuallyExclusive: OperationCondition { + public let name: String + + public var isMutuallyExclusive: Bool { + return true + } + + public init(category: String) { + name = "MutuallyExclusive<\(category)>" + } + + public func evaluate(for operation: Operation, completion: @escaping (Bool) -> Void) { + completion(true) + } +} |
