{"id":23427760,"url":"https://github.com/sunxfancy/libstream","last_synced_at":"2025-04-09T12:43:26.681Z","repository":{"id":76138863,"uuid":"49397918","full_name":"sunxfancy/libstream","owner":"sunxfancy","description":"Streamful function call","archived":false,"fork":false,"pushed_at":"2016-01-11T02:53:18.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T06:42:25.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sunxfancy.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":"2016-01-11T02:49:18.000Z","updated_at":"2016-01-11T02:53:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa6edc6f-f529-42ca-bde6-c53f3a27b43b","html_url":"https://github.com/sunxfancy/libstream","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/sunxfancy%2Flibstream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunxfancy%2Flibstream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunxfancy%2Flibstream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunxfancy%2Flibstream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunxfancy","download_url":"https://codeload.github.com/sunxfancy/libstream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045217,"owners_count":21038553,"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-12-23T06:35:32.232Z","updated_at":"2025-04-09T12:43:26.637Z","avatar_url":"https://github.com/sunxfancy.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"libstream\n===============\n\n\nStreamful function for C++\n\n## What a stream\n\nWe used the `\u003e\u003e` stream opeator for some continuous function call. It will reduce the callback function used.\n\neg. When we do some work one by one, and the next function's input will be the last function's return.\n\n```\n    auto ret = some.func(args);\n    auto ret2 = some.func2(ret);\n    auto ret3 = some.func3(ret2);\n    ...\n```\n\nSometimes, it will be this:\n```\n    auto ret = some.func3(some.func2(some.func(args)));\n```\n\nWe want to change it to this:\n```\n    func(args) \u003e\u003e some.func \u003e\u003e some.func2 \u003e\u003e some.func3;\n    func.call();\n    or\n    func.callsync();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunxfancy%2Flibstream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunxfancy%2Flibstream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunxfancy%2Flibstream/lists"}