{"action":"created","issue":{"url":"https://api.github.com/repos/senecajs/seneca-mesh/issues/4","repository_url":"https://api.github.com/repos/senecajs/seneca-mesh","labels_url":"https://api.github.com/repos/senecajs/seneca-mesh/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/senecajs/seneca-mesh/issues/4/comments","events_url":"https://api.github.com/repos/senecajs/seneca-mesh/issues/4/events","html_url":"https://github.com/senecajs/seneca-mesh/issues/4","id":130046159,"number":4,"title":"Question: Correct way to defer acts until available","user":{"login":"mcdonnelldean","id":3625961,"avatar_url":"https://avatars.githubusercontent.com/u/3625961?v=3","gravatar_id":"","url":"https://api.github.com/users/mcdonnelldean","html_url":"https://github.com/mcdonnelldean","followers_url":"https://api.github.com/users/mcdonnelldean/followers","following_url":"https://api.github.com/users/mcdonnelldean/following{/other_user}","gists_url":"https://api.github.com/users/mcdonnelldean/gists{/gist_id}","starred_url":"https://api.github.com/users/mcdonnelldean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcdonnelldean/subscriptions","organizations_url":"https://api.github.com/users/mcdonnelldean/orgs","repos_url":"https://api.github.com/users/mcdonnelldean/repos","events_url":"https://api.github.com/users/mcdonnelldean/events{/privacy}","received_events_url":"https://api.github.com/users/mcdonnelldean/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-01-30T22:30:07Z","updated_at":"2016-12-05T18:47:21Z","closed_at":"2016-02-19T11:56:16Z","body":"@rjrodger \n\nWhen I spin up a service I use mesh to add a user via seneca-user's register method. Right now I need to add a timeout of around 3 seconds to ensure this happens. The problem seems to be the variable amount of time it takes for services to mesh together (I don't think it actually takes 3 seconds, it's just a safe bet). I assume we can never reliably depend on timeouts since network and mesh size are variable.\n\nIs there a hook in mesh that I could take advantage off to emit when a pin is available or gets meshed? I don't mind adding this in myself.\n\nOr as an alternative, what recipes do you recommend that don't depend on timeouts?\n"},"comment":{"url":"https://api.github.com/repos/senecajs/seneca-mesh/issues/comments/264940075","html_url":"https://github.com/senecajs/seneca-mesh/issues/4#issuecomment-264940075","issue_url":"https://api.github.com/repos/senecajs/seneca-mesh/issues/4","id":264940075,"user":{"login":"jacktuck","id":8209433,"avatar_url":"https://avatars.githubusercontent.com/u/8209433?v=3","gravatar_id":"","url":"https://api.github.com/users/jacktuck","html_url":"https://github.com/jacktuck","followers_url":"https://api.github.com/users/jacktuck/followers","following_url":"https://api.github.com/users/jacktuck/following{/other_user}","gists_url":"https://api.github.com/users/jacktuck/gists{/gist_id}","starred_url":"https://api.github.com/users/jacktuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacktuck/subscriptions","organizations_url":"https://api.github.com/users/jacktuck/orgs","repos_url":"https://api.github.com/users/jacktuck/repos","events_url":"https://api.github.com/users/jacktuck/events{/privacy}","received_events_url":"https://api.github.com/users/jacktuck/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T18:47:21Z","updated_at":"2016-12-05T18:47:21Z","body":"Hey, @rjrodger. Out of curiosity, how do you determine when meshing has finished?  "}}
{"actor":{"display_login":"jacktuck"}}