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
Runtime
It would be nice if with_tokio_rt also works with closures that e.g., return Arc<Runtime> or similar.
Arc<Runtime>
e.g., my use-case is that my tokio runtime is declared as
pub static TOKIO: Lazy<Runtime> = Lazy::new(|| Runtime::new().unwrap());
to share it across the code and I'd like to be able to pass it to System::with_tokio_rt too, but Runtime doesn't implement Copy.
System::with_tokio_rt
The text was updated successfully, but these errors were encountered:
n
No branches or pull requests
It would be nice if with_tokio_rt also works with closures that e.g., return
Arc<Runtime>
or similar.e.g., my use-case is that my tokio runtime is declared as
to share it across the code and I'd like to be able to pass it to
System::with_tokio_rt
too, but Runtime doesn't implement Copy.The text was updated successfully, but these errors were encountered: