use Handle::current in dylib/so/dll #7134
Unanswered
frederik-uni
asked this question in
Q&A
Replies: 1 comment 1 reply
-
No, if your application has multiple copies of Tokio, then there's no way to get it to use the "wrong" copy of Tokio. See #6927 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i have a quite unique problem. i am trying to use async in a dylib. Sadly i struggle to setup tokio in the dylib. i dont want to have multiple runtimes, but be able to use the tokio runtime from the project i am running the dylib/so/dll from.
If i get a function that returns a future it should work fine. My issue is that i use hyper which uses Handle::current for dns. Handle::current has no context.
Is there a way to set the CONTEXT manually?
Beta Was this translation helpful? Give feedback.
All reactions