{"id":26247906,"url":"https://github.com/ciathefed/coroutines-zig","last_synced_at":"2026-05-13T12:32:06.507Z","repository":{"id":281565356,"uuid":"945662005","full_name":"ciathefed/coroutines-zig","owner":"ciathefed","description":"Zig bindings for tsoding's coroutines library","archived":false,"fork":false,"pushed_at":"2025-12-03T01:21:57.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-06T01:56:25.270Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"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/ciathefed.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":"2025-03-09T23:15:24.000Z","updated_at":"2025-12-03T01:22:00.000Z","dependencies_parsed_at":"2025-03-13T01:19:57.466Z","dependency_job_id":null,"html_url":"https://github.com/ciathefed/coroutines-zig","commit_stats":null,"previous_names":["ciathefed/zoro","ciathefed/coroutines-zig"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ciathefed/coroutines-zig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciathefed%2Fcoroutines-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciathefed%2Fcoroutines-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciathefed%2Fcoroutines-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciathefed%2Fcoroutines-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ciathefed","download_url":"https://codeload.github.com/ciathefed/coroutines-zig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ciathefed%2Fcoroutines-zig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32982622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T11:31:52.688Z","status":"ssl_error","status_checked_at":"2026-05-13T11:31:52.072Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["coroutines","zig","zig-package"],"created_at":"2025-03-13T14:15:55.969Z","updated_at":"2026-05-13T12:32:06.489Z","avatar_url":"https://github.com/ciathefed.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coroutines-zig\n\nZig bindings for tsoding's [coroutines](https://github.com/tsoding/coroutines) library\n\n## Install\n\n```shell\nzig fetch --save \"git+https://github.com/ciathefed/coroutines-zig#v0.1.0\"\n```\n\nAdd the following to `build.zig`:\n\n```zig\nconst coroutines = b.dependency(\"coroutines\", .{\n    .target = target,\n    .optimize = optimize,\n});\nexe_mod.addImport(\"coroutines\", coroutines.module(\"coroutines\"));\n```\n\n## Example\n\n```zig\nconst std = @import(\"std\");\nconst coroutines = @import(\"coroutines\");\n\nfn counter(arg: ?*anyopaque) callconv(.C) void {\n    const n = @as(usize, @intCast(@intFromPtr(arg)));\n    for (0..n) |i| {\n        std.debug.print(\"[{}] {}\\n\", .{ coroutines.id(), i });\n        coroutines.yield();\n    }\n}\n\npub fn main() !void {\n    coroutines.init();\n\n    coroutines.go(counter, @ptrFromInt(5));\n    coroutines.go(counter, @ptrFromInt(10));\n\n    while (coroutines.alive() \u003e 1) {\n        coroutines.yield();\n    }\n}\n```\n\nYou can find more examples [here](https://github.com/ciathefed/coroutines/tree/main/examples)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciathefed%2Fcoroutines-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fciathefed%2Fcoroutines-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fciathefed%2Fcoroutines-zig/lists"}