{"id":17506224,"url":"https://github.com/orchetect/otoperations","last_synced_at":"2025-04-23T12:26:09.909Z","repository":{"id":40900093,"uuid":"459344903","full_name":"orchetect/OTOperations","owner":"orchetect","description":"Useful Swift NSOperation and NSOperationQueue subclasses","archived":false,"fork":false,"pushed_at":"2025-01-27T22:36:03.000Z","size":304,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T23:32:11.160Z","etag":null,"topics":["ios","ios-swift","macos","nsoperation","nsoperationqueue","operation","operationqueue","operations","swift","swift-5","swift-5-5","tvos","watchos"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orchetect.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"orchetect"}},"created_at":"2022-02-14T22:23:29.000Z","updated_at":"2025-01-27T22:36:06.000Z","dependencies_parsed_at":"2025-03-05T13:36:19.240Z","dependency_job_id":"8cf40147-db34-4ccf-a1db-9f1178fc343a","html_url":"https://github.com/orchetect/OTOperations","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchetect%2FOTOperations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchetect%2FOTOperations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchetect%2FOTOperations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchetect%2FOTOperations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orchetect","download_url":"https://codeload.github.com/orchetect/OTOperations/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250432501,"owners_count":21429683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","ios-swift","macos","nsoperation","nsoperationqueue","operation","operationqueue","operations","swift","swift-5","swift-5-5","tvos","watchos"],"created_at":"2024-10-20T03:34:09.743Z","updated_at":"2025-04-23T12:26:09.886Z","avatar_url":"https://github.com/orchetect.png","language":"Swift","readme":"# OTOperations\n\n[![CI Build Status](https://github.com/orchetect/OTOperations/actions/workflows/build.yml/badge.svg)](https://github.com/orchetect/OTOperations/actions/workflows/build.yml) [![Platforms - macOS 10.15+ | iOS 13+ | tvOS 13+ | watchOS 6+ | visionOS 1+](https://img.shields.io/badge/platforms-macOS%2010.15+%20|%20iOS%2013+%20|%20tvOS%2013+%20|%20watchOS%206+%20|%20visionOS%201+-lightgrey.svg?style=flat)](https://developer.apple.com/swift) ![Swift 5.3-6.0](https://img.shields.io/badge/Swift-5.3–6.0-orange.svg?style=flat) [![Xcode 15-16](https://img.shields.io/badge/Xcode-15–16-blue.svg?style=flat)](https://developer.apple.com/swift) [![License: MIT](http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://github.com/orchetect/OTOperations/blob/main/LICENSE)\n\nUseful `NSOperation` (`Operation`) and `NSOperationQueue` (`OperationQueue`) subclasses for Swift.\n\nScalable, thread-safe, and automatically fully progress-reporting for nested child operations.\n\n- Foundational\n  - `BasicOperation` and `BasicAsyncOperation`\n- Closure-based\n  - `ClosureOperation` and `AsyncClosureOperation`\n  - `InteractiveClosureOperation` and `InteractiveAsyncClosureOperation`\n- Thread-safe atomic mutability\n  - `AtomicBlockOperation`\n\n## Installation: Swift Package Manager (SPM)\n\n### Dependency within an Application\n\n1. Add the package to your Xcode project using Swift Package Manager\n   - Select File → Swift Packages → Add Package Dependency\n   - Add package using  `https://github.com/orchetect/OTOperations` as the URL.\n2. Import the module in your *.swift files where needed.\n   ```swift\n   import OTOperations\n   ```\n\n### Dependency within a Swift Package\n\n1. In your Package.swift file:\n\n   ```swift\n   dependencies: [\n       .package(url: \"https://github.com/orchetect/OTOperations\", from: \"2.0.0\")\n   ],\n   ```\n   \n2. Using `internal import` prevents the methods and properties in `OTOperations` from being exported to the consumer of your SPM package.\n\n   ```swift\n   internal import OTOperations\n   ```\n\n## Documentation\n\nMost methods are implemented as category methods so they are generally discoverable.\n\nAll methods have inline help explaining their purpose and basic usage examples.\n\n## Author\n\nCoded by a bunch of 🐹 hamsters in a trenchcoat that calls itself [@orchetect](https://github.com/orchetect).\n\n## License\n\nLicensed under the MIT license. See [LICENSE](https://github.com/orchetect/OTOperations/blob/master/LICENSE) for details.\n\n## Contributions\n\nBug fixes and improvements are welcome. Please open an issue to discuss prior to submitting PRs.\n","funding_links":["https://github.com/sponsors/orchetect"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forchetect%2Fotoperations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forchetect%2Fotoperations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forchetect%2Fotoperations/lists"}