Created
September 13, 2020 13:59
-
-
Save trilliwon/1f79f9c45ac245ced42b7bd6d68ad5e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public extension OperationQueue { | |
static var serial: OperationQueue { | |
let queue = OperationQueue() | |
queue.maxConcurrentOperationCount = 1 | |
return queue | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment