Open shaitao opened 6 years ago
I believe the closures accept the result value of the previous future.
I believe the closures accept the result value of the previous future.
yes it is, but many funcitons return future and Self::Item changes around, it's hard to find.
Related #67
We should be sure to answer this question as part of the combinator section in https://github.com/tokio-rs/doc-push/blob/master/outline/futures-streams-sinks.md#contents-1.
I saw in examples like .map(|_|{...}) .and_then(|(A,B)|{...}) .andthen(|(A,)|{...}) .and_then(|x|{...}) ... It's hard to find what is passed to the closure.