Skip to content

Instantly share code, notes, and snippets.

@MindFlavor
Last active July 8, 2017 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MindFlavor/fdc12c37380cc190b05a3be32eaf31c4 to your computer and use it in GitHub Desktop.
Save MindFlavor/fdc12c37380cc190b05a3be32eaf31c4 to your computer and use it in GitHub Desktop.
fn code() -> impl Future<Item = (), Error = ErrorB> {
io_a()
.from_err()
.and_then(|_| done(met_a()))
.from_err()
.and_then(|_| done(met_b()).and_then(|_| io_b()))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment