{"action":"created","issue":{"url":"https://api.github.com/repos/garyburd/redigo/issues/197","repository_url":"https://api.github.com/repos/garyburd/redigo","labels_url":"https://api.github.com/repos/garyburd/redigo/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/garyburd/redigo/issues/197/comments","events_url":"https://api.github.com/repos/garyburd/redigo/issues/197/events","html_url":"https://github.com/garyburd/redigo/issues/197","id":170507978,"number":197,"title":"conn.ReceiveAll ?  ","user":{"login":"MaerF0x0","id":247846,"avatar_url":"https://avatars.githubusercontent.com/u/247846?v=3","gravatar_id":"","url":"https://api.github.com/users/MaerF0x0","html_url":"https://github.com/MaerF0x0","followers_url":"https://api.github.com/users/MaerF0x0/followers","following_url":"https://api.github.com/users/MaerF0x0/following{/other_user}","gists_url":"https://api.github.com/users/MaerF0x0/gists{/gist_id}","starred_url":"https://api.github.com/users/MaerF0x0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaerF0x0/subscriptions","organizations_url":"https://api.github.com/users/MaerF0x0/orgs","repos_url":"https://api.github.com/users/MaerF0x0/repos","events_url":"https://api.github.com/users/MaerF0x0/events{/privacy}","received_events_url":"https://api.github.com/users/MaerF0x0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-10T20:14:09Z","updated_at":"2016-08-10T20:42:47Z","closed_at":"2016-08-10T20:42:47Z","body":"Is there some simple way to do a receive all on a batch of Send()s + Flush() call ?  The examples I've seen all rely on counting: \r\n```go\r\n c.Send()\r\n count++\r\n// Many times\r\n\r\nc.Flush()\r\nfor i := 0 ; i < count ;  i ++ {\r\n fmt.Println(c.Receive())\r\n} \r\n``` \r\n\r\nIs there either a while() style option or a \"ReceiveAll\" (I didnt notice one in the docs) \r\n\r\n```go\r\n// doesnt work\r\nvar res interface{}\r\nvar err error\r\nfor ; err == nil; res, err = c.Receive() {\r\n    fmt.Println(res, err)\r\n}  // hangs on the last receive\r\n```\r\n\r\n\r\nIf not available, but you'd accept a PR , lmk and I'll see if I can write one up . \r\n"},"comment":{"url":"https://api.github.com/repos/garyburd/redigo/issues/comments/238997541","html_url":"https://github.com/garyburd/redigo/issues/197#issuecomment-238997541","issue_url":"https://api.github.com/repos/garyburd/redigo/issues/197","id":238997541,"user":{"login":"MaerF0x0","id":247846,"avatar_url":"https://avatars.githubusercontent.com/u/247846?v=3","gravatar_id":"","url":"https://api.github.com/users/MaerF0x0","html_url":"https://github.com/MaerF0x0","followers_url":"https://api.github.com/users/MaerF0x0/followers","following_url":"https://api.github.com/users/MaerF0x0/following{/other_user}","gists_url":"https://api.github.com/users/MaerF0x0/gists{/gist_id}","starred_url":"https://api.github.com/users/MaerF0x0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaerF0x0/subscriptions","organizations_url":"https://api.github.com/users/MaerF0x0/orgs","repos_url":"https://api.github.com/users/MaerF0x0/repos","events_url":"https://api.github.com/users/MaerF0x0/events{/privacy}","received_events_url":"https://api.github.com/users/MaerF0x0/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T20:42:47Z","updated_at":"2016-08-10T20:42:47Z","body":"After more searching I think I found my answer: https://godoc.org/github.com/garyburd/redigo/redis#hdr-Pipelining\r\n\r\n```\r\nif the command argument to the Do method is \"\", then the Do \r\nmethod will flush the output buffer and receive pending replies \r\nwithout sending a command.\r\n\r\nUse the Send and Do methods to implement pipelined transactions.\r\n```"}}
{"actor":{"display_login":"MaerF0x0"}}