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
The following panics
#[test] fn block_on_from_block_on() { let mut rt = runtime::Runtime::new().unwrap(); rt.block_on_std(async { tokio_02::task::block_in_place(move || ()); }); }
Easy workaround by wrapping the bblock_in_place call with a tokio::spawn, but it had me confused for a bit.
block_in_place
tokio::spawn
The text was updated successfully, but these errors were encountered:
Yeah, this is a Tokio 0.2 limitation — there is an upstream ticket about it: tokio-rs/tokio#1838. As per tokio-rs/tokio#1838 (comment), this limitation may be removed in the future.
Sorry, something went wrong.
No branches or pull requests
The following panics
Easy workaround by wrapping the b
block_in_place
call with atokio::spawn
, but it had me confused for a bit.The text was updated successfully, but these errors were encountered: