4 ms·
nothing is optimized away, it's just not executed - e.g. the program including semantics of the language is just designed such that it is not executed. e.g. fo
by tcfhgj 22d ago
nothing is optimized away, it's just not executed - e.g. the program including semantics of the language is just designed such that it is not executed.
e.g. for Rust/tokio printing B is skipped, because the process exits and cancels the future before the task can print B
- _ink_ 22d agoThat's what I thought. But then what is the point when no other async function is executed while the caller sleeps for 1 second (presumably, or is it ms?)?
- tcfhgj 22d agohow would one be executed when the function is explicitly waiting? also it's an example to demonstrate the differences of async implementations of languages, not a excerpt of a production code base