Last active
July 28, 2019 19:24
-
-
Save piyushdec/30c0887c84800eb63885e3699a02be06 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
| class PendingOperations { | |
| lazy var downloadsInProgress: [IndexPath: Operation] = [:] | |
| lazy var downloadQueue: OperationQueue = { | |
| var queue = OperationQueue() | |
| queue.name = "Download queue" | |
| queue.maxConcurrentOperationCount = 1 | |
| return queue | |
| }() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment