Useful NSOperation
(Operation
) and NSOperationQueue
(OperationQueue
) subclasses for Swift.
Scalable, thread-safe, and automatically fully progress-reporting for nested child operations.
BasicOperation
and BasicAsyncOperation
ClosureOperation
and AsyncClosureOperation
InteractiveClosureOperation
and InteractiveAsyncClosureOperation
AtomicBlockOperation
https://github.com/orchetect/OTOperations
as the URL.import OTOperations
In your Package.swift file:
dependencies: [
.package(url: "https://github.com/orchetect/OTOperations", from: "1.0.0")
],
@_implementationOnly
prevents the methods and properties in OTOperations
from being exported to the consumer of your SPM package.
@_implementationOnly import OTOperations
Most methods are implemented as category methods so they are generally discoverable.
All methods have inline help explaining their purpose and basic usage examples.
Coded by a bunch of 🐹 hamsters in a trenchcoat that calls itself @orchetect.
Licensed under the MIT license. See LICENSE for details.
Bug fixes and improvements are welcome. Please open an issue to discuss prior to submitting PRs.
link |
Stars: 2 |
Last commit: 43 weeks ago |
OperationQueueAccess
enum and matching OperationQueue.wait(for:)
methodSwiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics