{"action":"created","issue":{"url":"https://api.github.com/repos/crystal-lang/crystal/issues/2990","repository_url":"https://api.github.com/repos/crystal-lang/crystal","labels_url":"https://api.github.com/repos/crystal-lang/crystal/issues/2990/labels{/name}","comments_url":"https://api.github.com/repos/crystal-lang/crystal/issues/2990/comments","events_url":"https://api.github.com/repos/crystal-lang/crystal/issues/2990/events","html_url":"https://github.com/crystal-lang/crystal/issues/2990","id":165370743,"number":2990,"title":"receive from channel with timeout","user":{"login":"kostya","id":95060,"avatar_url":"https://avatars.githubusercontent.com/u/95060?v=3","gravatar_id":"","url":"https://api.github.com/users/kostya","html_url":"https://github.com/kostya","followers_url":"https://api.github.com/users/kostya/followers","following_url":"https://api.github.com/users/kostya/following{/other_user}","gists_url":"https://api.github.com/users/kostya/gists{/gist_id}","starred_url":"https://api.github.com/users/kostya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostya/subscriptions","organizations_url":"https://api.github.com/users/kostya/orgs","repos_url":"https://api.github.com/users/kostya/repos","events_url":"https://api.github.com/users/kostya/events{/privacy}","received_events_url":"https://api.github.com/users/kostya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/crystal-lang/crystal/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-13T16:58:04Z","updated_at":"2016-07-13T17:29:05Z","closed_at":null,"body":"how to do that?\r\nin go i can \r\n```go\r\nselect {\r\ncase <-ch:\r\n    // a read from ch has occurred\r\ncase <-timeout:\r\n    // the read from ch has timed out\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/crystal-lang/crystal/issues/comments/232427719","html_url":"https://github.com/crystal-lang/crystal/issues/2990#issuecomment-232427719","issue_url":"https://api.github.com/repos/crystal-lang/crystal/issues/2990","id":232427719,"user":{"login":"asterite","id":209371,"avatar_url":"https://avatars.githubusercontent.com/u/209371?v=3","gravatar_id":"","url":"https://api.github.com/users/asterite","html_url":"https://github.com/asterite","followers_url":"https://api.github.com/users/asterite/followers","following_url":"https://api.github.com/users/asterite/following{/other_user}","gists_url":"https://api.github.com/users/asterite/gists{/gist_id}","starred_url":"https://api.github.com/users/asterite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asterite/subscriptions","organizations_url":"https://api.github.com/users/asterite/orgs","repos_url":"https://api.github.com/users/asterite/repos","events_url":"https://api.github.com/users/asterite/events{/privacy}","received_events_url":"https://api.github.com/users/asterite/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T17:29:05Z","updated_at":"2016-07-13T17:29:05Z","body":"Exceptions are slow, they shouldn't be used for control flow."}}
{"actor":{"display_login":"asterite"}}