Queuer is a queue manager, built on top of OperationQueue and Dispatch (aka GCD).
MIT License
Bot releases are hidden (Show)
executionBlock
indefinitely when using async/await APIs - #32
Published by FabrizioBrancati 6 months ago
[!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.
Published by FabrizioBrancati almost 5 years ago
Published by FabrizioBrancati over 5 years ago
Published by FabrizioBrancati almost 6 years ago
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
Published by FabrizioBrancati almost 6 years ago
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
Published by FabrizioBrancati over 6 years ago
QualityOfService
on LinuxRequestOperation
, it will be removed in Queuer 2Published by FabrizioBrancati over 6 years ago
OperationQueue
in Queuer class is now open
Thanks to @BabyAzerty for this release
Published by FabrizioBrancati over 6 years ago
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
capturesPublished by FabrizioBrancati almost 7 years ago
Published by FabrizioBrancati about 7 years ago
Published by FabrizioBrancati about 7 years ago
qualityOfService
property on Queuer classinit
function on Queuer class with maxConcurrentOperationCount
and qualityOfService
properties, both with a default value, so no changes are requiredConcurrentOperation
is subclassable with open
instead of public
Access Control #2
Published by FabrizioBrancati about 7 years ago
ConcurrentOperation
to create asynchronous operationsQueuer
to handle a shared
queue or create a custom oneRequestOperation
to create network request operationsSemaphore
to create a Dispath semaphoreSynchronousOperation
to create synchronous operations