{"action":"created","issue":{"url":"https://api.github.com/repos/wistia/nsq-ruby/issues/18","labels_url":"https://api.github.com/repos/wistia/nsq-ruby/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/wistia/nsq-ruby/issues/18/comments","events_url":"https://api.github.com/repos/wistia/nsq-ruby/issues/18/events","html_url":"https://github.com/wistia/nsq-ruby/pull/18","id":120757738,"number":18,"title":"Add option to pop without blocking","user":{"login":"DanielleSucher","id":1193691,"avatar_url":"https://avatars.githubusercontent.com/u/1193691?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielleSucher","html_url":"https://github.com/DanielleSucher","followers_url":"https://api.github.com/users/DanielleSucher/followers","following_url":"https://api.github.com/users/DanielleSucher/following{/other_user}","gists_url":"https://api.github.com/users/DanielleSucher/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielleSucher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielleSucher/subscriptions","organizations_url":"https://api.github.com/users/DanielleSucher/orgs","repos_url":"https://api.github.com/users/DanielleSucher/repos","events_url":"https://api.github.com/users/DanielleSucher/events{/privacy}","received_events_url":"https://api.github.com/users/DanielleSucher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-12-07T11:52:38Z","updated_at":"2015-12-09T03:47:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wistia/nsq-ruby/pulls/18","html_url":"https://github.com/wistia/nsq-ruby/pull/18","diff_url":"https://github.com/wistia/nsq-ruby/pull/18.diff","patch_url":"https://github.com/wistia/nsq-ruby/pull/18.patch"},"body":"Queue#pop's default behavior blocks when the queue is empty, until a new\r\nmessage comes in.\r\n\r\nIt optionally takes a boolean non_block argument. When non_block=true, a\r\nThreadException is thrown when the queue is empty.\r\n\r\nThis PR adds the option of looping non-blocking Queue#pop requests until\r\nthe specified timeout expires, and returning nil if no message is found\r\nin that time."},"comment":{"url":"https://api.github.com/repos/wistia/nsq-ruby/issues/comments/163096174","html_url":"https://github.com/wistia/nsq-ruby/pull/18#issuecomment-163096174","issue_url":"https://api.github.com/repos/wistia/nsq-ruby/issues/18","id":163096174,"user":{"login":"DanielleSucher","id":1193691,"avatar_url":"https://avatars.githubusercontent.com/u/1193691?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielleSucher","html_url":"https://github.com/DanielleSucher","followers_url":"https://api.github.com/users/DanielleSucher/followers","following_url":"https://api.github.com/users/DanielleSucher/following{/other_user}","gists_url":"https://api.github.com/users/DanielleSucher/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielleSucher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielleSucher/subscriptions","organizations_url":"https://api.github.com/users/DanielleSucher/orgs","repos_url":"https://api.github.com/users/DanielleSucher/repos","events_url":"https://api.github.com/users/DanielleSucher/events{/privacy}","received_events_url":"https://api.github.com/users/DanielleSucher/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T03:47:50Z","updated_at":"2015-12-09T03:47:50Z","body":"Awesome, thank you!"}}