We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tokio = { version = "0.1.13", features = ["async-await-preview"]}
Ubuntu 16.04
I'm wondering how can I terminate tokio::runtime::current_thread::Runtime? I'm using the following macro to run some future:
tokio::runtime::current_thread::Runtime
#[macro_export] macro_rules! block_on_async { ($test:expr) => {{ use tokio::runtime::current_thread::Runtime; use tokio_async_await::compat::backward; use futures::future; use tokio::runtime::current_thread::block_on_all; let future = backward::Compat::new(async { let _ = await!($test); let result: std::result::Result<(), ()> = Ok(()); result }); let mut rt = Runtime::new().expect("Unable to start async tester runtime"); rt.block_on(future).unwrap(); }}; }
After that, I would terminate the reactor. Is there any way I can do that?
The text was updated successfully, but these errors were encountered:
Dropping rt should perform all necessary shutdown work. Was there anything else you were thinking of that would need to be done?
rt
Sorry, something went wrong.
No branches or pull requests
Version
Platform
Ubuntu 16.04
Description
I'm wondering how can I terminate
tokio::runtime::current_thread::Runtime
? I'm using the following macro to run some future:After that, I would terminate the reactor. Is there any way I can do that?
The text was updated successfully, but these errors were encountered: