{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/seedboxtech/eventhorizon/pulls/1","id":217082354,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3MDgyMzU0","html_url":"https://github.com/seedboxtech/eventhorizon/pull/1","diff_url":"https://github.com/seedboxtech/eventhorizon/pull/1.diff","patch_url":"https://github.com/seedboxtech/eventhorizon/pull/1.patch","issue_url":"https://api.github.com/repos/seedboxtech/eventhorizon/issues/1","number":1,"state":"closed","locked":false,"title":"Add the ability to wait for all the channels to be closed before exiting the main thread","user":{"login":"mcarriere","id":25467653,"node_id":"MDQ6VXNlcjI1NDY3NjUz","avatar_url":"https://avatars1.githubusercontent.com/u/25467653?v=4","gravatar_id":"","url":"https://api.github.com/users/mcarriere","html_url":"https://github.com/mcarriere","followers_url":"https://api.github.com/users/mcarriere/followers","following_url":"https://api.github.com/users/mcarriere/following{/other_user}","gists_url":"https://api.github.com/users/mcarriere/gists{/gist_id}","starred_url":"https://api.github.com/users/mcarriere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcarriere/subscriptions","organizations_url":"https://api.github.com/users/mcarriere/orgs","repos_url":"https://api.github.com/users/mcarriere/repos","events_url":"https://api.github.com/users/mcarriere/events{/privacy}","received_events_url":"https://api.github.com/users/mcarriere/received_events","type":"User","site_admin":false},"body":"# Summary\r\nThis is to solve an issue where the processing of some events wouldn't be complete when the main process exited\r\n\r\n# How to test\r\n\r\n1) Add an event handler (projector) and add a long task in the find method (example sleep for a few seconds)\r\n2) Send a command immediately after the setup of the command & event buses.\r\n3) See that the event handler didn't complete it's task before the main process exits\r\n\r\n# Notes\r\nThis is only relevant if event horizon isn't used as a long running process. In our case we're running in AWS Lambda which make it very short lived\r\n","created_at":"2018-09-20T19:31:17Z","updated_at":"2018-09-20T22:32:01Z","closed_at":"2018-09-20T22:32:01Z","merged_at":"2018-09-20T22:32:00Z","merge_commit_sha":"7f0f27099b97fed26087da647b37eaa96367936e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"mbiard-seedbox","id":5204353,"node_id":"MDQ6VXNlcjUyMDQzNTM=","avatar_url":"https://avatars0.githubusercontent.com/u/5204353?v=4","gravatar_id":"","url":"https://api.github.com/users/mbiard-seedbox","html_url":"https://github.com/mbiard-seedbox","followers_url":"https://api.github.com/users/mbiard-seedbox/followers","following_url":"https://api.github.com/users/mbiard-seedbox/following{/other_user}","gists_url":"https://api.github.com/users/mbiard-seedbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mbiard-seedbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbiard-seedbox/subscriptions","organizations_url":"https://api.github.com/users/mbiard-seedbox/orgs","repos_url":"https://api.github.com/users/mbiard-seedbox/repos","events_url":"https://api.github.com/users/mbiard-seedbox/events{/privacy}","received_events_url":"https://api.github.com/users/mbiard-seedbox/received_events","type":"User","site_admin":false},{"login":"kjacques","id":23341835,"node_id":"MDQ6VXNlcjIzMzQxODM1","avatar_url":"https://avatars2.githubusercontent.com/u/23341835?v=4","gravatar_id":"","url":"https://api.github.com/users/kjacques","html_url":"https://github.com/kjacques","followers_url":"https://api.github.com/users/kjacques/followers","following_url":"https://api.github.com/users/kjacques/following{/other_user}","gists_url":"https://api.github.com/users/kjacques/gists{/gist_id}","starred_url":"https://api.github.com/users/kjacques/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjacques/subscriptions","organizations_url":"https://api.github.com/users/kjacques/orgs","repos_url":"https://api.github.com/users/kjacques/repos","events_url":"https://api.github.com/users/kjacques/events{/privacy}","received_events_url":"https://api.github.com/users/kjacques/received_events","type":"User","site_admin":false},{"login":"jfnault-seedbox","id":25469183,"node_id":"MDQ6VXNlcjI1NDY5MTgz","avatar_url":"https://avatars3.githubusercontent.com/u/25469183?v=4","gravatar_id":"","url":"https://api.github.com/users/jfnault-seedbox","html_url":"https://github.com/jfnault-seedbox","followers_url":"https://api.github.com/users/jfnault-seedbox/followers","following_url":"https://api.github.com/users/jfnault-seedbox/following{/other_user}","gists_url":"https://api.github.com/users/jfnault-seedbox/gists{/gist_id}","starred_url":"https://api.github.com/users/jfnault-seedbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfnault-seedbox/subscriptions","organizations_url":"https://api.github.com/users/jfnault-seedbox/orgs","repos_url":"https://api.github.com/users/jfnault-seedbox/repos","events_url":"https://api.github.com/users/jfnault-seedbox/events{/privacy}","received_events_url":"https://api.github.com/users/jfnault-seedbox/received_events","type":"User","site_admin":false},{"login":"jlaporte-seedbox","id":35846951,"node_id":"MDQ6VXNlcjM1ODQ2OTUx","avatar_url":"https://avatars1.githubusercontent.com/u/35846951?v=4","gravatar_id":"","url":"https://api.github.com/users/jlaporte-seedbox","html_url":"https://github.com/jlaporte-seedbox","followers_url":"https://api.github.com/users/jlaporte-seedbox/followers","following_url":"https://api.github.com/users/jlaporte-seedbox/following{/other_user}","gists_url":"https://api.github.com/users/jlaporte-seedbox/gists{/gist_id}","starred_url":"https://api.github.com/users/jlaporte-seedbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlaporte-seedbox/subscriptions","organizations_url":"https://api.github.com/users/jlaporte-seedbox/orgs","repos_url":"https://api.github.com/users/jlaporte-seedbox/repos","events_url":"https://api.github.com/users/jlaporte-seedbox/events{/privacy}","received_events_url":"https://api.github.com/users/jlaporte-seedbox/received_events","type":"User","site_admin":false},{"login":"ghamel-seedbox","id":36772661,"node_id":"MDQ6VXNlcjM2NzcyNjYx","avatar_url":"https://avatars1.githubusercontent.com/u/36772661?v=4","gravatar_id":"","url":"https://api.github.com/users/ghamel-seedbox","html_url":"https://github.com/ghamel-seedbox","followers_url":"https://api.github.com/users/ghamel-seedbox/followers","following_url":"https://api.github.com/users/ghamel-seedbox/following{/other_user}","gists_url":"https://api.github.com/users/ghamel-seedbox/gists{/gist_id}","starred_url":"https://api.github.com/users/ghamel-seedbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghamel-seedbox/subscriptions","organizations_url":"https://api.github.com/users/ghamel-seedbox/orgs","repos_url":"https://api.github.com/users/ghamel-seedbox/repos","events_url":"https://api.github.com/users/ghamel-seedbox/events{/privacy}","received_events_url":"https://api.github.com/users/ghamel-seedbox/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/seedboxtech/eventhorizon/pulls/1/commits","review_comments_url":"https://api.github.com/repos/seedboxtech/eventhorizon/pulls/1/comments","review_comment_url":"https://api.github.com/repos/seedboxtech/eventhorizon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/seedboxtech/eventhorizon/issues/1/comments","statuses_url":"https://api.github.com/repos/seedboxtech/eventhorizon/statuses/f2c0efa29319be8dcfc2b00304684a7f7416ea3d","head":{"label":"seedboxtech:GUILD-221-Fix-Concurrency-Event-Bus","ref":"GUILD-221-Fix-Concurrency-Event-Bus","sha":"f2c0efa29319be8dcfc2b00304684a7f7416ea3d","user":{"login":"seedboxtech","id":3640742,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NDA3NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/3640742?v=4","gravatar_id":"","url":"https://api.github.com/users/seedboxtech","html_url":"https://github.com/seedboxtech","followers_url":"https://api.github.com/users/seedboxtech/followers","following_url":"https://api.github.com/users/seedboxtech/following{/other_user}","gists_url":"https://api.github.com/users/seedboxtech/gists{/gist_id}","starred_url":"https://api.github.com/users/seedboxtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seedboxtech/subscriptions","organizations_url":"https://api.github.com/users/seedboxtech/orgs","repos_url":"https://api.github.com/users/seedboxtech/repos","events_url":"https://api.github.com/users/seedboxtech/events{/privacy}","received_events_url":"https://api.github.com/users/seedboxtech/received_events","type":"Organization","site_admin":false},"repo":{"id":148534758,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg1MzQ3NTg=","name":"eventhorizon","full_name":"seedboxtech/eventhorizon","private":false,"owner":{"login":"seedboxtech","id":3640742,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NDA3NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/3640742?v=4","gravatar_id":"","url":"https://api.github.com/users/seedboxtech","html_url":"https://github.com/seedboxtech","followers_url":"https://api.github.com/users/seedboxtech/followers","following_url":"https://api.github.com/users/seedboxtech/following{/other_user}","gists_url":"https://api.github.com/users/seedboxtech/gists{/gist_id}","starred_url":"https://api.github.com/users/seedboxtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seedboxtech/subscriptions","organizations_url":"https://api.github.com/users/seedboxtech/orgs","repos_url":"https://api.github.com/users/seedboxtech/repos","events_url":"https://api.github.com/users/seedboxtech/events{/privacy}","received_events_url":"https://api.github.com/users/seedboxtech/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/seedboxtech/eventhorizon","description":"CQRS/ES toolkit for Go","fork":true,"url":"https://api.github.com/repos/seedboxtech/eventhorizon","forks_url":"https://api.github.com/repos/seedboxtech/eventhorizon/forks","keys_url":"https://api.github.com/repos/seedboxtech/eventhorizon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seedboxtech/eventhorizon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seedboxtech/eventhorizon/teams","hooks_url":"https://api.github.com/repos/seedboxtech/eventhorizon/hooks","issue_events_url":"https://api.github.com/repos/seedboxtech/eventhorizon/issues/events{/number}","events_url":"https://api.github.com/repos/seedboxtech/eventhorizon/events","assignees_url":"https://api.github.com/repos/seedboxtech/eventhorizon/assignees{/user}","branches_url":"https://api.github.com/repos/seedboxtech/eventhorizon/branches{/branch}","tags_url":"https://api.github.com/repos/seedboxtech/eventhorizon/tags","blobs_url":"https://api.github.com/repos/seedboxtech/eventhorizon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seedboxtech/eventhorizon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seedboxtech/eventhorizon/git/refs{/sha}","trees_url":"https://api.github.com/repos/seedboxtech/eventhorizon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seedboxtech/eventhorizon/statuses/{sha}","languages_url":"https://api.github.com/repos/seedboxtech/eventhorizon/languages","stargazers_url":"https://api.github.com/repos/seedboxtech/eventhorizon/stargazers","contributors_url":"https://api.github.com/repos/seedboxtech/eventhorizon/contributors","subscribers_url":"https://api.github.com/repos/seedboxtech/eventhorizon/subscribers","subscription_url":"https://api.github.com/repos/seedboxtech/eventhorizon/subscription","commits_url":"https://api.github.com/repos/seedboxtech/eventhorizon/commits{/sha}","git_commits_url":"https://api.github.com/repos/seedboxtech/eventhorizon/git/commits{/sha}","comments_url":"https://api.github.com/repos/seedboxtech/eventhorizon/comments{/number}","issue_comment_url":"https://api.github.com/repos/seedboxtech/eventhorizon/issues/comments{/number}","contents_url":"https://api.github.com/repos/seedboxtech/eventhorizon/contents/{+path}","compare_url":"https://api.github.com/repos/seedboxtech/eventhorizon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seedboxtech/eventhorizon/merges","archive_url":"https://api.github.com/repos/seedboxtech/eventhorizon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seedboxtech/eventhorizon/downloads","issues_url":"https://api.github.com/repos/seedboxtech/eventhorizon/issues{/number}","pulls_url":"https://api.github.com/repos/seedboxtech/eventhorizon/pulls{/number}","milestones_url":"https://api.github.com/repos/seedboxtech/eventhorizon/milestones{/number}","notifications_url":"https://api.github.com/repos/seedboxtech/eventhorizon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seedboxtech/eventhorizon/labels{/name}","releases_url":"https://api.github.com/repos/seedboxtech/eventhorizon/releases{/id}","deployments_url":"https://api.github.com/repos/seedboxtech/eventhorizon/deployments","created_at":"2018-09-12T19:59:52Z","updated_at":"2018-09-20T18:38:52Z","pushed_at":"2018-09-20T22:32:00Z","git_url":"git://github.com/seedboxtech/eventhorizon.git","ssh_url":"git@github.com:seedboxtech/eventhorizon.git","clone_url":"https://github.com/seedboxtech/eventhorizon.git","svn_url":"https://github.com/seedboxtech/eventhorizon","homepage":null,"size":1273,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"seedboxtech:master","ref":"master","sha":"bb58e35323a7380efd73eec98d9bdaa5a0ce68c1","user":{"login":"seedboxtech","id":3640742,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NDA3NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/3640742?v=4","gravatar_id":"","url":"https://api.github.com/users/seedboxtech","html_url":"https://github.com/seedboxtech","followers_url":"https://api.github.com/users/seedboxtech/followers","following_url":"https://api.github.com/users/seedboxtech/following{/other_user}","gists_url":"https://api.github.com/users/seedboxtech/gists{/gist_id}","starred_url":"https://api.github.com/users/seedboxtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seedboxtech/subscriptions","organizations_url":"https://api.github.com/users/seedboxtech/orgs","repos_url":"https://api.github.com/users/seedboxtech/repos","events_url":"https://api.github.com/users/seedboxtech/events{/privacy}","received_events_url":"https://api.github.com/users/seedboxtech/received_events","type":"Organization","site_admin":false},"repo":{"id":148534758,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg1MzQ3NTg=","name":"eventhorizon","full_name":"seedboxtech/eventhorizon","private":false,"owner":{"login":"seedboxtech","id":3640742,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NDA3NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/3640742?v=4","gravatar_id":"","url":"https://api.github.com/users/seedboxtech","html_url":"https://github.com/seedboxtech","followers_url":"https://api.github.com/users/seedboxtech/followers","following_url":"https://api.github.com/users/seedboxtech/following{/other_user}","gists_url":"https://api.github.com/users/seedboxtech/gists{/gist_id}","starred_url":"https://api.github.com/users/seedboxtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seedboxtech/subscriptions","organizations_url":"https://api.github.com/users/seedboxtech/orgs","repos_url":"https://api.github.com/users/seedboxtech/repos","events_url":"https://api.github.com/users/seedboxtech/events{/privacy}","received_events_url":"https://api.github.com/users/seedboxtech/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/seedboxtech/eventhorizon","description":"CQRS/ES toolkit for Go","fork":true,"url":"https://api.github.com/repos/seedboxtech/eventhorizon","forks_url":"https://api.github.com/repos/seedboxtech/eventhorizon/forks","keys_url":"https://api.github.com/repos/seedboxtech/eventhorizon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seedboxtech/eventhorizon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seedboxtech/eventhorizon/teams","hooks_url":"https://api.github.com/repos/seedboxtech/eventhorizon/hooks","issue_events_url":"https://api.github.com/repos/seedboxtech/eventhorizon/issues/events{/number}","events_url":"https://api.github.com/repos/seedboxtech/eventhorizon/events","assignees_url":"https://api.github.com/repos/seedboxtech/eventhorizon/assignees{/user}","branches_url":"https://api.github.com/repos/seedboxtech/eventhorizon/branches{/branch}","tags_url":"https://api.github.com/repos/seedboxtech/eventhorizon/tags","blobs_url":"https://api.github.com/repos/seedboxtech/eventhorizon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seedboxtech/eventhorizon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seedboxtech/eventhorizon/git/refs{/sha}","trees_url":"https://api.github.com/repos/seedboxtech/eventhorizon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seedboxtech/eventhorizon/statuses/{sha}","languages_url":"https://api.github.com/repos/seedboxtech/eventhorizon/languages","stargazers_url":"https://api.github.com/repos/seedboxtech/eventhorizon/stargazers","contributors_url":"https://api.github.com/repos/seedboxtech/eventhorizon/contributors","subscribers_url":"https://api.github.com/repos/seedboxtech/eventhorizon/subscribers","subscription_url":"https://api.github.com/repos/seedboxtech/eventhorizon/subscription","commits_url":"https://api.github.com/repos/seedboxtech/eventhorizon/commits{/sha}","git_commits_url":"https://api.github.com/repos/seedboxtech/eventhorizon/git/commits{/sha}","comments_url":"https://api.github.com/repos/seedboxtech/eventhorizon/comments{/number}","issue_comment_url":"https://api.github.com/repos/seedboxtech/eventhorizon/issues/comments{/number}","contents_url":"https://api.github.com/repos/seedboxtech/eventhorizon/contents/{+path}","compare_url":"https://api.github.com/repos/seedboxtech/eventhorizon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seedboxtech/eventhorizon/merges","archive_url":"https://api.github.com/repos/seedboxtech/eventhorizon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seedboxtech/eventhorizon/downloads","issues_url":"https://api.github.com/repos/seedboxtech/eventhorizon/issues{/number}","pulls_url":"https://api.github.com/repos/seedboxtech/eventhorizon/pulls{/number}","milestones_url":"https://api.github.com/repos/seedboxtech/eventhorizon/milestones{/number}","notifications_url":"https://api.github.com/repos/seedboxtech/eventhorizon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seedboxtech/eventhorizon/labels{/name}","releases_url":"https://api.github.com/repos/seedboxtech/eventhorizon/releases{/id}","deployments_url":"https://api.github.com/repos/seedboxtech/eventhorizon/deployments","created_at":"2018-09-12T19:59:52Z","updated_at":"2018-09-20T18:38:52Z","pushed_at":"2018-09-20T22:32:00Z","git_url":"git://github.com/seedboxtech/eventhorizon.git","ssh_url":"git@github.com:seedboxtech/eventhorizon.git","clone_url":"https://github.com/seedboxtech/eventhorizon.git","svn_url":"https://github.com/seedboxtech/eventhorizon","homepage":null,"size":1273,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/seedboxtech/eventhorizon/pulls/1"},"html":{"href":"https://github.com/seedboxtech/eventhorizon/pull/1"},"issue":{"href":"https://api.github.com/repos/seedboxtech/eventhorizon/issues/1"},"comments":{"href":"https://api.github.com/repos/seedboxtech/eventhorizon/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/seedboxtech/eventhorizon/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/seedboxtech/eventhorizon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/seedboxtech/eventhorizon/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/seedboxtech/eventhorizon/statuses/f2c0efa29319be8dcfc2b00304684a7f7416ea3d"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"mcarriere","id":25467653,"node_id":"MDQ6VXNlcjI1NDY3NjUz","avatar_url":"https://avatars1.githubusercontent.com/u/25467653?v=4","gravatar_id":"","url":"https://api.github.com/users/mcarriere","html_url":"https://github.com/mcarriere","followers_url":"https://api.github.com/users/mcarriere/followers","following_url":"https://api.github.com/users/mcarriere/following{/other_user}","gists_url":"https://api.github.com/users/mcarriere/gists{/gist_id}","starred_url":"https://api.github.com/users/mcarriere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcarriere/subscriptions","organizations_url":"https://api.github.com/users/mcarriere/orgs","repos_url":"https://api.github.com/users/mcarriere/repos","events_url":"https://api.github.com/users/mcarriere/events{/privacy}","received_events_url":"https://api.github.com/users/mcarriere/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":21,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"mcarriere"}}