Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use futures::future::Future; // 0.1.28
- fn main() {
- let f1 = futures::future::ok::<(), ()>(());
- let f2 = futures::future::ok::<(), ()>(());
- f1.and_then(move |_| f2).wait().unwrap();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement