{"id":18030327,"url":"https://github.com/jhurray/swiftydispatch","last_synced_at":"2025-04-04T21:16:10.545Z","repository":{"id":76688317,"uuid":"57942838","full_name":"jhurray/SwiftyDispatch","owner":"jhurray","description":"Lightweight syntax wrapper over GCD","archived":false,"fork":false,"pushed_at":"2016-05-04T02:23:41.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T05:43:36.088Z","etag":null,"topics":[],"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/jhurray.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":"2016-05-03T05:09:25.000Z","updated_at":"2016-05-03T22:46:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"332f3072-d155-41ee-9811-5c79dd3d4912","html_url":"https://github.com/jhurray/SwiftyDispatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurray%2FSwiftyDispatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurray%2FSwiftyDispatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurray%2FSwiftyDispatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurray%2FSwiftyDispatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhurray","download_url":"https://codeload.github.com/jhurray/SwiftyDispatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249544,"owners_count":20908212,"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-10-30T09:14:03.424Z","updated_at":"2025-04-04T21:16:10.525Z","avatar_url":"https://github.com/jhurray.png","language":"Swift","readme":"# SwiftyDispatch\nLightweight syntax wrapper over GCD dispatch queues and dispatch groups\n\n\n```swift\nvar main = DispatchQueue(type: .Main)\n\nmain.sync {\n    print(\"sync\")\n}\n\nlet queue = DispatchQueue(type: .Custom(name: \"my.queue\", style: .Serial))\n\nqueue.async({\n    print(\"async\")\n})\n\nlet group = DispatchGroup()\nfor i in 0...5 {\n    group.async(queue, execute: {\n        print(\"\\(i)\")\n    })\n}\n\ngroup.enter()\ngroup.async(queue, execute: {\n    group.leave()\n})\n\ngroup.notify(queue, execute: {\n    print(\"done\")\n})\n\n```\n\n##Carthage\n\nAdd the following to your cartfile\n\n```\ngithub \"jhurray/SwiftyDispatch\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhurray%2Fswiftydispatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhurray%2Fswiftydispatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhurray%2Fswiftydispatch/lists"}