{"id":17327669,"url":"https://github.com/maikel/glib-senders","last_synced_at":"2026-04-29T19:31:20.343Z","repository":{"id":81149644,"uuid":"593358859","full_name":"maikel/glib-senders","owner":"maikel","description":"Senders and Receivers for the GNOME Glib library ","archived":false,"fork":false,"pushed_at":"2023-03-30T15:55:04.000Z","size":99,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-28T17:10:03.252Z","etag":null,"topics":["coroutines","cpp","gtk","stdexec"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maikel.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":"2023-01-25T20:22:39.000Z","updated_at":"2024-05-11T02:45:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"28718889-5491-4f86-86d8-d71204b3816b","html_url":"https://github.com/maikel/glib-senders","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maikel/glib-senders","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maikel%2Fglib-senders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maikel%2Fglib-senders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maikel%2Fglib-senders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maikel%2Fglib-senders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maikel","download_url":"https://codeload.github.com/maikel/glib-senders/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maikel%2Fglib-senders/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32440830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","cpp","gtk","stdexec"],"created_at":"2024-10-15T14:20:39.464Z","updated_at":"2026-04-29T19:31:20.327Z","avatar_url":"https://github.com/maikel.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![CMake Status](https://github.com/maikel/glib-senders/actions/workflows/cmake.yml/badge.svg)\n\nSenders and Receivers for the GNOME Glib library \n===============================================\n\nThis is a small C++ library that glues together the Glib event loop and the current executor proposal for C++.\nIt can be used to compose asynchronous tasks in a Glib event loop.\n\nSince single-valued senders can be automatically converted to awaitable objects, the library also provides a way to use C++ coroutines in a Glib event loop.\n\nThe library requires C++20.\n\nExample\n\n```cpp\n#include \"glib-senders/glib_io_context.hpp\"\n#include \"glib-senders/file_descriptor.hpp\"\n\n#include \u003cexec/task.hpp\u003e\n\nusing namespace gsenders;\n\nexec::task\u003cvoid\u003e write(file_descriptor fd, std::span\u003cconst char\u003e buffer) {\n  while (!buffer.empty()) {\n    buffer = co_await async_write_some(fd, buffer);\n  }\n} \n\nexec::task\u003cvoid\u003e echo(file_descriptor in, file_descriptor out) {\n  char buffer[1024];\n  int n = 0;\n  for (int n = 0; n \u003c 10; ++n) {\n    std::span\u003cchar\u003e received = co_await async_read_some(in, buffer);\n    co_await write(out, received);\n  }\n} \n\nint main() {\n  glib_io_context ctx{};\n  file_descriptor in{STDIN_FILENO};\n  file_descriptor out{STDOUT_FILENO};\n  stdexec::start_detached(echo(in, out) | stdexec::then([\u0026] { ctx.stop(); }));\n  ctx.run();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaikel%2Fglib-senders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaikel%2Fglib-senders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaikel%2Fglib-senders/lists"}