{"action":"created","issue":{"url":"https://api.github.com/repos/eapache/queue/issues/12","repository_url":"https://api.github.com/repos/eapache/queue","labels_url":"https://api.github.com/repos/eapache/queue/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/eapache/queue/issues/12/comments","events_url":"https://api.github.com/repos/eapache/queue/issues/12/events","html_url":"https://github.com/eapache/queue/pull/12","id":169239550,"number":12,"title":"Add Clear() and Pop() functions","user":{"login":"gammazero","id":11790789,"avatar_url":"https://avatars.githubusercontent.com/u/11790789?v=3","gravatar_id":"","url":"https://api.github.com/users/gammazero","html_url":"https://github.com/gammazero","followers_url":"https://api.github.com/users/gammazero/followers","following_url":"https://api.github.com/users/gammazero/following{/other_user}","gists_url":"https://api.github.com/users/gammazero/gists{/gist_id}","starred_url":"https://api.github.com/users/gammazero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gammazero/subscriptions","organizations_url":"https://api.github.com/users/gammazero/orgs","repos_url":"https://api.github.com/users/gammazero/repos","events_url":"https://api.github.com/users/gammazero/events{/privacy}","received_events_url":"https://api.github.com/users/gammazero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-03T21:33:11Z","updated_at":"2016-08-03T21:59:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eapache/queue/pulls/12","html_url":"https://github.com/eapache/queue/pull/12","diff_url":"https://github.com/eapache/queue/pull/12.diff","patch_url":"https://github.com/eapache/queue/pull/12.patch"},"body":"This is useful to clear the queue in such a way that does not cause GC, particularly when the queue will be refilled by a similar number of items than it was previously."},"comment":{"url":"https://api.github.com/repos/eapache/queue/issues/comments/237388239","html_url":"https://github.com/eapache/queue/pull/12#issuecomment-237388239","issue_url":"https://api.github.com/repos/eapache/queue/issues/12","id":237388239,"user":{"login":"gammazero","id":11790789,"avatar_url":"https://avatars.githubusercontent.com/u/11790789?v=3","gravatar_id":"","url":"https://api.github.com/users/gammazero","html_url":"https://github.com/gammazero","followers_url":"https://api.github.com/users/gammazero/followers","following_url":"https://api.github.com/users/gammazero/following{/other_user}","gists_url":"https://api.github.com/users/gammazero/gists{/gist_id}","starred_url":"https://api.github.com/users/gammazero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gammazero/subscriptions","organizations_url":"https://api.github.com/users/gammazero/orgs","repos_url":"https://api.github.com/users/gammazero/repos","events_url":"https://api.github.com/users/gammazero/events{/privacy}","received_events_url":"https://api.github.com/users/gammazero/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T21:59:47Z","updated_at":"2016-08-03T21:59:47Z","body":"I went with panic() for Pop() on empty queue, because that is consistent with the rest of the API and the check for an empty queue still needs to be done somewhere either way - either checking Length() explicitly or by looking at an error return."}}
{"actor":{"display_login":"gammazero"}}