-
Notifications
You must be signed in to change notification settings - Fork 88
block_on RFC #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I believe that if we can get a Is this even feasible? async fn something(inputs) -> return;
fn main() {
block_on(something(...));
} optimize the same as this? fn something(input) -> return;
fn main() {
something(...);
} Right now |
Doing something "async", e.g. non-blocking I/O, but then blocking is often more costly than doing blocking I/O. So I don't think this is possible for many operations. |
We saw rust-lang/rust#65875 closed and requiring an RFC. The working group should probably pick this up.
The text was updated successfully, but these errors were encountered: