{"id":16683868,"url":"https://github.com/meniny/easygcd","last_synced_at":"2025-04-09T23:25:21.760Z","repository":{"id":56909730,"uuid":"97699769","full_name":"Meniny/EasyGCD","owner":"Meniny","description":"💯A tiny library to make using GCD easier.","archived":false,"fork":false,"pushed_at":"2019-04-06T08:31:12.000Z","size":396,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T05:03:28.787Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Meniny.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}},"created_at":"2017-07-19T09:41:37.000Z","updated_at":"2019-04-06T08:30:15.000Z","dependencies_parsed_at":"2022-08-21T02:50:46.835Z","dependency_job_id":null,"html_url":"https://github.com/Meniny/EasyGCD","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FEasyGCD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FEasyGCD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FEasyGCD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FEasyGCD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meniny","download_url":"https://codeload.github.com/Meniny/EasyGCD/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248127607,"owners_count":21052256,"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-12T14:26:59.939Z","updated_at":"2025-04-09T23:25:21.740Z","avatar_url":"https://github.com/Meniny.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://ooo.0o0.ooo/2017/07/20/5970681dc4468.png\" alt=\"EasyGCD\"\u003e\n  \u003cbr/\u003e\u003ca href=\"https://cocoapods.org/pods/EasyGCD\"\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-1.4.0-brightgreen.svg\"\u003e\n  \u003cimg alt=\"Author\" src=\"https://img.shields.io/badge/author-Meniny-blue.svg\"\u003e\n  \u003cimg alt=\"Build Passing\" src=\"https://img.shields.io/badge/build-passing-brightgreen.svg\"\u003e\n  \u003cimg alt=\"Swift\" src=\"https://img.shields.io/badge/swift-5.0%2B-orange.svg\"\u003e\n  \u003cbr/\u003e\n  \u003cimg alt=\"Platforms\" src=\"https://img.shields.io/badge/platform-macOS%20%7C%20iOS%20%7C%20watchOS%20%7C%20tvOS-lightgrey.svg\"\u003e\n  \u003cimg alt=\"MIT\" src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\n  \u003cbr/\u003e\n  \u003cimg alt=\"Cocoapods\" src=\"https://img.shields.io/badge/cocoapods-compatible-brightgreen.svg\"\u003e\n  \u003cimg alt=\"Carthage\" src=\"https://img.shields.io/badge/carthage-working%20on-red.svg\"\u003e\n  \u003cimg alt=\"SPM\" src=\"https://img.shields.io/badge/swift%20package%20manager-working%20on-red.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## What's this?\n\n`EasyGCD` is a tiny library to make using GCD easier. written in Swift.\n\n## Requirements\n\n* iOS 8.0+\n* macOS 10.10+\n* watchOS 2.0+\n* tvOS 9.0+\n* Xcode 8 with Swift 3\n\n## Installation\n\n#### CocoaPods\n\n```ruby\npod 'EasyGCD'\n```\n\n## Contribution\n\nYou are welcome to fork and submit pull requests.\n\n## License\n\n`EasyGCD` is open-sourced software, licensed under the `MIT` license.\n\n## Usage\n\n```swift\ndispatch {\n  // asynchronously on the main queue\n}\n\nmain {\n  // asynchronously on the main queue\n}\n\nglobal {\n  // asynchronously on the global queue\n}\n```\n\n```swift\nimport EasyGCD\n\nfunc sync() {\n    EasyGCD.sync(.global(qos: .background)) {\n        print(\"sync @ background global queue\")\n    }\n}\n\nfunc async() {\n    EasyGCD.async(EasyGCDQueue.global(.background)) {\n        print(\"async @ background global queue\")\n    }\n    EasyGCD.async {\n        print(\"async @ main queue\")\n    }\n}\n\nfunc after() {\n    EasyGCD.after(2.0) {\n        print(\"2 seconds later\")\n    }\n    EasyGCD.after(4, queue: .global(qos: .default)) {\n        print(\"4 seconds later\")\n    }\n    EasyGCD.after(DispatchTime.now() + 6, queue: .main) {\n        print(\"6 seconds later\")\n    }\n}\n\nfunc once() {\n    EasyGCD.once(token: \"Once\") {\n        print(\"Once\")\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeniny%2Feasygcd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeniny%2Feasygcd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeniny%2Feasygcd/lists"}