Queuer is a queue manager, built on top of OperationQueue and Dispatch (aka GCD).
executionBlock
indefinitely when using async/await APIs - #32
[!WARNING] The goal of this release is to make the repo more maintainable. To do so, only Swift Package Manager will be supported. If you rely on any of the removed dependencies managers, like CocoaPods or Carthage, please stick to the previous version.
Queuer 2.1.1 is compatible with Swift 5.10, you can still use it in your projects.
ConcurrentOperation
class, more info on how to use it here - #28
GroupOperation
operation type, more info on how to use it here - #14 #17
macCatalyst
supportScheduler
bug that may prevent to correctly call the event handlerSynchronousOperation
. Use a queue with maxConcurrentOperationCount
set to 1
to execute a synchronous queueisAsynchronous
variable from ConcurrentOperation
as always ignored by OperationQueue
s. You can override it anyway if you need to, since it's inferred from the Operation
classhasFailed
variable from ConcurrentOperation
class as it was deprecated in version 2.0.1finish(_ hasFailed: Bool)
function from ConcurrentOperation
class as it was deprecated in version 2.0.1Thanks to Kalzem, changmingw96, cristianilea-lateral, kradalby, mradzinski and marinofaggiana for this release.
open func finish(_ hasFailed: Bool)
to open func finish(success: Bool = true)
, the old one has been deprecated but still valid #12
hasFailed
variable to success
, the old one has been deprecated but still valid #12
Thanks to @zykloman for this release
ConcurrentOperation
class #10, more info on how to use it here and here
addCompletionHandler(_:)
function to Queuer
classScheduler
class to better schedule your tasks, more info on how to use it here
executionBlock
of ConcurrentOperation
to pass the concurrentOperation
variable inside the closure to be able to use the retry feature. If you don't need it simply put _ in
after the block creation:
let concurrentOperation = ConcurrentOperation { _ in
/// Your task here
}
This also affects SynchronousOperation
Semaphore
with timeout handlingThanks to @SureshSc, @zykloman and @debjitk for this release
OperationQueue
in Queuer class is now open
Thanks to @BabyAzerty for this release
swift_version
property in podspec file for CocoaPods 1.4.0body
, headers
and query
parameters in RequestOperation class may now be nil
open
session
object in RequestOperation class in now open and has waitsForConnectivity
sets to true
for iOS 11 or later by defaultself
captures