-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
I completely don't understand why I should use moro as opposed to plain futures (not to be confused to tasks). README shows code example, but I can write similar example without moro using plain futures:
let value = 22;
let result = (async {
let future1 = (async {
let future2 = (async {
value // access stack values that outlive scope
});
let v = future2.await * 2;
v
});
let v = future1.await * 2;
v
}).await;
eprintln!("{result}"); // prints 88I tested this code and it prints 88. So please update README and write actually motivating example
tyilo
Metadata
Metadata
Assignees
Labels
No labels