{"id":18763724,"url":"https://github.com/inloop/inlasyncoperation","last_synced_at":"2025-09-12T06:33:46.998Z","repository":{"id":77722240,"uuid":"117959701","full_name":"inloop/INLAsyncOperation","owner":"inloop","description":"The wrapper for the AsynchronousOperation","archived":false,"fork":false,"pushed_at":"2018-01-18T11:07:30.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-12-29T05:26:21.873Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/inloop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2018-01-18T09:13:31.000Z","updated_at":"2023-08-07T08:49:04.000Z","dependencies_parsed_at":"2024-08-06T09:05:23.599Z","dependency_job_id":null,"html_url":"https://github.com/inloop/INLAsyncOperation","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2FINLAsyncOperation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2FINLAsyncOperation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2FINLAsyncOperation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2FINLAsyncOperation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inloop","download_url":"https://codeload.github.com/inloop/INLAsyncOperation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239661864,"owners_count":19676411,"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":[],"created_at":"2024-11-07T18:27:15.360Z","updated_at":"2025-02-19T12:45:52.060Z","avatar_url":"https://github.com/inloop.png","language":"Shell","readme":"# INLAsyncOperation\n\n## Requirements\n* iOS 9.0+\n\n## Installation\n\nINLAsyncOperation is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'INLAsyncOperation'\n```\n\n## Usage\n\n1. run `pod install` in your repository\n2. `import INLAsyncOperation`\n3. Subclass `AsynchronousOperation`\n4. Override `main()`\n5. Put your task implementation in `main()` of your custom class\n\nSee the example `INLAsyncOperationExample` as a reference.\n\n```swift\nstruct OperationDispatcher {\n    private let queue = OperationQueue()\n\n    func dispatch(_ operation: Operation) {\n        queue.addOperation(operation)\n    }\n}\n\nfinal class SampleOperation: AsynchronousOperation {\n    typealias CompletionClosure = (_ emojis: [String]) -\u003e Void\n\n    private let completion: CompletionClosure\n\n    init(completion: @escaping CompletionClosure) {\n        self.completion = completion\n    }\n\n    override func main() {\n        DispatchQueue.main.asyncAfter(deadline: .now() + 10) {\n            let array = [String](repeating: \"🎉\", count: 100)\n            self.completion(array)\n        }\n    }\n}\n```\n\n## Author\n\nradimhalfar, radim.halfar@inloop.eu\n\n## License\n\nINLAsyncOperation is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finloop%2Finlasyncoperation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finloop%2Finlasyncoperation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finloop%2Finlasyncoperation/lists"}