{"id":20533994,"url":"https://github.com/nzrsky/oddispatch","last_synced_at":"2025-09-25T14:31:31.195Z","repository":{"id":62449262,"uuid":"61153487","full_name":"nzrsky/ODDispatch","owner":"nzrsky","description":"Header-only GCD/DispatchQueue syntax sugar for ObjC 🚦","archived":false,"fork":false,"pushed_at":"2022-10-19T21:09:33.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-18T20:17:58.029Z","etag":null,"topics":["dispatchqueue","gcd","ios","objc","objective-c"],"latest_commit_sha":null,"homepage":"https://github.com/Rogaven/ODDispatch.git","language":"Objective-C","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/nzrsky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-14T20:26:53.000Z","updated_at":"2022-10-17T22:55:46.000Z","dependencies_parsed_at":"2022-11-01T23:17:01.638Z","dependency_job_id":null,"html_url":"https://github.com/nzrsky/ODDispatch","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzrsky%2FODDispatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzrsky%2FODDispatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzrsky%2FODDispatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzrsky%2FODDispatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nzrsky","download_url":"https://codeload.github.com/nzrsky/ODDispatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234206206,"owners_count":18796273,"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":["dispatchqueue","gcd","ios","objc","objective-c"],"created_at":"2024-11-16T00:24:45.589Z","updated_at":"2025-09-25T14:31:25.900Z","avatar_url":"https://github.com/nzrsky.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# ODDispatch\n\n[![Build Status](https://app.travis-ci.com/nzrsky/ODDispatch.svg?branch=master)](https://app.travis-ci.com/nzrsky/ODDispatch)\n[![codecov.io](https://codecov.io/github/nzrsky/ODDispatch/coverage.svg?branch=master)](https://codecov.io/github/nzrsky/ODDispatch?branch=master)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/ODDispatch.svg)](https://cocoapods.org/pods/ODDispatch)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Platform](https://img.shields.io/cocoapods/p/ODDispatch.svg?style=flat)](http://cocoadocs.org/docsets/ODDispatch)\n[![Twitter](https://img.shields.io/badge/twitter-@nzrsky-blue.svg?style=flat)](http://twitter.com/nzrsky)\n\n## Usage\n\n### ODDispatchOnce\n\n```objective-c\n@import ODDispatch;\n\n// Before \nstatic id singletone;\nstatic dispatch_once_t onceToken;\ndispatch_once(\u0026onceToken, ^(){\n \tsingletone = [Singletone new];\n});\n\n// After\nstatic id singletone;\nODDispatchOnce(^{\n\tsingletone = [Singletone new];\n});\n\n```\n\n### ODDispatchAfter\n\n```objective-c\n// Before \ndispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{\n}\n\n// After\nODDispatchAfterInMainThread(2, ^{\n});\n```\n\n### ODDispatchAsyncInMainThread\n\n```objective-c\n// Before \ndispatch_async(dispatch_get_main_queue(), ^{\n});\n\n// After\nODDispatchAsyncInMainThread(^{\n});\n```\n\n### ODDispatchAsyncInBackgroundThread\n\n```objective-c\n// Before \ndispatch_async(dispatch_get_global_queue(priority, 0), ^{\n});\n\n// After\nODDispatchAsyncInBackgroundThread(^{\n});\n```\n\n## Installation\n\nODDispatch is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'ODDispatch'\n```\n\n## Author\n\nAlexey Nazarov, alexx.nazaroff@gmail.com\n\n## License\n\nODDispatch is available under the MIT license. See the LICENSE file for more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnzrsky%2Foddispatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnzrsky%2Foddispatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnzrsky%2Foddispatch/lists"}