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
Drop a runtime in futures #1950
Comments
Dropping a runtime is intended to be a blocking operation. Can you tell me why you need to hold a runtime from a future? Can you hold a runtime::Handle instead? |
Our code embraces async using actor model. If dropping a runtime is a blocking operation, I think we may need to change the way of handling runtime. |
You shouldn't need multiple runtimes to run an actor system, have you taken a look #1879? Might have some better solutions to this problem. |
@LucioFranco thanks for the issue! |
Fixed by #2646. |
Version
tokio v0.2.4
Platform
Darwin Kernel Version 19.0.0
Description
It's not possible to drop a tokio runtime in async context.
for example:
Fow now, I have to keep track of every usage on structs who contain
Runtime
, and make sure they are dropped in non-async context.The text was updated successfully, but these errors were encountered: