{"action":"created","issue":{"url":"https://api.github.com/repos/mediocregopher/radix.v2/issues/12","labels_url":"https://api.github.com/repos/mediocregopher/radix.v2/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/mediocregopher/radix.v2/issues/12/comments","events_url":"https://api.github.com/repos/mediocregopher/radix.v2/issues/12/events","html_url":"https://github.com/mediocregopher/radix.v2/pull/12","id":119475241,"number":12,"title":"add PipeClear","user":{"login":"initrdmk","id":10482293,"avatar_url":"https://avatars.githubusercontent.com/u/10482293?v=3","gravatar_id":"","url":"https://api.github.com/users/initrdmk","html_url":"https://github.com/initrdmk","followers_url":"https://api.github.com/users/initrdmk/followers","following_url":"https://api.github.com/users/initrdmk/following{/other_user}","gists_url":"https://api.github.com/users/initrdmk/gists{/gist_id}","starred_url":"https://api.github.com/users/initrdmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/initrdmk/subscriptions","organizations_url":"https://api.github.com/users/initrdmk/orgs","repos_url":"https://api.github.com/users/initrdmk/repos","events_url":"https://api.github.com/users/initrdmk/events{/privacy}","received_events_url":"https://api.github.com/users/initrdmk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-30T11:39:14Z","updated_at":"2015-12-02T21:32:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mediocregopher/radix.v2/pulls/12","html_url":"https://github.com/mediocregopher/radix.v2/pull/12","diff_url":"https://github.com/mediocregopher/radix.v2/pull/12.diff","patch_url":"https://github.com/mediocregopher/radix.v2/pull/12.patch"},"body":"Clear the content of a pipeline, including pending calls and/or\r\npending replies. The return value indicates the number of\r\ncalls/replies cleared and the sign tells calls and replies apart."},"comment":{"url":"https://api.github.com/repos/mediocregopher/radix.v2/issues/comments/161440095","html_url":"https://github.com/mediocregopher/radix.v2/pull/12#issuecomment-161440095","issue_url":"https://api.github.com/repos/mediocregopher/radix.v2/issues/12","id":161440095,"user":{"login":"mediocregopher","id":933154,"avatar_url":"https://avatars.githubusercontent.com/u/933154?v=3","gravatar_id":"","url":"https://api.github.com/users/mediocregopher","html_url":"https://github.com/mediocregopher","followers_url":"https://api.github.com/users/mediocregopher/followers","following_url":"https://api.github.com/users/mediocregopher/following{/other_user}","gists_url":"https://api.github.com/users/mediocregopher/gists{/gist_id}","starred_url":"https://api.github.com/users/mediocregopher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediocregopher/subscriptions","organizations_url":"https://api.github.com/users/mediocregopher/orgs","repos_url":"https://api.github.com/users/mediocregopher/repos","events_url":"https://api.github.com/users/mediocregopher/events{/privacy}","received_events_url":"https://api.github.com/users/mediocregopher/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T21:32:02Z","updated_at":"2015-12-02T21:32:02Z","body":"Ok, that case makes some sense, and @betamike pointed out another case to me that this would also be useful for. If I PipeAppend a bunch of commands, then get the first response. If I only care about the responses for the subsequent commands depending on what the first response is, then clearing out the queue would be required if I decide I don't need them, so this would be helpful there too.\r\n\r\nSo I guess if it has two separate use-cases then that's a decent argument for adding it :P If you wanna go ahead and do the `(int, int)` thing, we can start working towards getting this in :)"}}