{"action":"created","issue":{"url":"https://api.github.com/repos/rjrodger/seneca-mesh/issues/4","labels_url":"https://api.github.com/repos/rjrodger/seneca-mesh/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/rjrodger/seneca-mesh/issues/4/comments","events_url":"https://api.github.com/repos/rjrodger/seneca-mesh/issues/4/events","html_url":"https://github.com/rjrodger/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":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-30T22:30:07Z","updated_at":"2016-02-01T19:51:36Z","closed_at":null,"body":"@rjrodger \r\n\r\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.\r\n\r\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.\r\n\r\nOr as an alternative, what recipes do you recommend that don't depend on timeouts?"},"comment":{"url":"https://api.github.com/repos/rjrodger/seneca-mesh/issues/comments/178157844","html_url":"https://github.com/rjrodger/seneca-mesh/issues/4#issuecomment-178157844","issue_url":"https://api.github.com/repos/rjrodger/seneca-mesh/issues/4","id":178157844,"user":{"login":"rjrodger","id":138608,"avatar_url":"https://avatars.githubusercontent.com/u/138608?v=3","gravatar_id":"","url":"https://api.github.com/users/rjrodger","html_url":"https://github.com/rjrodger","followers_url":"https://api.github.com/users/rjrodger/followers","following_url":"https://api.github.com/users/rjrodger/following{/other_user}","gists_url":"https://api.github.com/users/rjrodger/gists{/gist_id}","starred_url":"https://api.github.com/users/rjrodger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjrodger/subscriptions","organizations_url":"https://api.github.com/users/rjrodger/orgs","repos_url":"https://api.github.com/users/rjrodger/repos","events_url":"https://api.github.com/users/rjrodger/events{/privacy}","received_events_url":"https://api.github.com/users/rjrodger/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T19:51:36Z","updated_at":"2016-02-01T19:51:36Z","body":"on master, seneca.ready should do the trick, as it waits for meshing to finish"}}