{"id":18551857,"url":"https://github.com/pcmarks/genstage_example_2","last_synced_at":"2025-05-15T11:10:38.138Z","repository":{"id":150498630,"uuid":"65213917","full_name":"pcmarks/genstage_example_2","owner":"pcmarks","description":"GenStage example with a multi-input stage.","archived":false,"fork":false,"pushed_at":"2016-09-21T19:32:46.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T10:48:52.085Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pcmarks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-08T15:03:46.000Z","updated_at":"2017-02-22T00:39:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb8c5669-136c-4e66-9c65-879d6f23a05e","html_url":"https://github.com/pcmarks/genstage_example_2","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/pcmarks%2Fgenstage_example_2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcmarks%2Fgenstage_example_2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcmarks%2Fgenstage_example_2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcmarks%2Fgenstage_example_2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcmarks","download_url":"https://codeload.github.com/pcmarks/genstage_example_2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328389,"owners_count":22052633,"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-11-06T21:10:38.275Z","updated_at":"2025-05-15T11:10:33.126Z","avatar_url":"https://github.com/pcmarks.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GenstageExample2\n\nThis is an example of a simple four stage GenStage flow. It features a multi-input stage - an adder that requires two values and computes their sum. For a more detailed\nexplanation, please see this blog [post](www.elixirfbp.com)\n\nThe example is meant to illustrate how to:\n\n1. design a multi-input stage, and\n2. allow for the uneven appearances of input events.\n\nTwo examples of flows are possible - see the comments for directions:\n\n1. Two Constant stages feed a Sum stage whose output is asked for by a\nTimer stage.\n2. Two enumerated flows feed a Sum stage whose output is asked for by a\nTimer stage.\n\n## To run:\n\n1. cd genstage_example_2\n2. mix deps.get\n3. mix run lib/genstage_example_2.exs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcmarks%2Fgenstage_example_2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcmarks%2Fgenstage_example_2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcmarks%2Fgenstage_example_2/lists"}