{"action":"opened","issue":{"url":"https://api.github.com/repos/seanmonstar/reqwest/issues/369","repository_url":"https://api.github.com/repos/seanmonstar/reqwest","labels_url":"https://api.github.com/repos/seanmonstar/reqwest/issues/369/labels{/name}","comments_url":"https://api.github.com/repos/seanmonstar/reqwest/issues/369/comments","events_url":"https://api.github.com/repos/seanmonstar/reqwest/issues/369/events","html_url":"https://github.com/seanmonstar/reqwest/issues/369","id":369905778,"node_id":"MDU6SXNzdWUzNjk5MDU3Nzg=","number":369,"title":"Using pending to compose futures","user":{"login":"happenslol","id":753308,"node_id":"MDQ6VXNlcjc1MzMwOA==","avatar_url":"https://avatars2.githubusercontent.com/u/753308?v=4","gravatar_id":"","url":"https://api.github.com/users/happenslol","html_url":"https://github.com/happenslol","followers_url":"https://api.github.com/users/happenslol/followers","following_url":"https://api.github.com/users/happenslol/following{/other_user}","gists_url":"https://api.github.com/users/happenslol/gists{/gist_id}","starred_url":"https://api.github.com/users/happenslol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/happenslol/subscriptions","organizations_url":"https://api.github.com/users/happenslol/orgs","repos_url":"https://api.github.com/users/happenslol/repos","events_url":"https://api.github.com/users/happenslol/events{/privacy}","received_events_url":"https://api.github.com/users/happenslol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-14T14:09:47Z","updated_at":"2018-10-14T14:09:47Z","closed_at":null,"author_association":"NONE","body":"Hello! First of all, thanks for the amazing library, it's saving me a ton of work right now.\r\n\r\nI'm using the async version of reqwest to download files in parallel, and I'm implementing my own futures to represent a batch of files that has to be downloaded and parsed/read sequentially. The inner type for me future looks roughly like this:\r\n\r\n```rust\r\nenum InnerFuture {\r\n    DownloadingFirstFile(...),\r\n    DownloadingFirstBody(...),\r\n    DownloadingSecondFile(...),\r\n    DownloadingSecondBody(...),\r\n}\r\n```\r\n\r\nRight now, since the `Pending` type in async is private, it's impossible for me to type these correctly without boxing them. So, right now, the types are \r\n`DownloadingFirstFile<Box<Future<Item = Response, Error = Error>>`, \r\n`DownloadingFirstBody<Concat2<Decoder>>`, \r\nand so on - when I would much rather have \r\n`DownloadingFirstFile(Pending)` \r\ninstead. \r\n\r\nIs there a specific reason for the pending type that's returned from `RequestBuilder.send` and `Client.execute` to be private, or am I maybe doing this whole thing incorrectly?"}}
{"actor":{"display_login":"happenslol"}}