Dynamic library
#7739
Replies: 1 comment 1 reply
-
|
It's not so easy. You must be careful to not create more than one copy of Tokio in your application. 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
Uh oh!
There was an error while loading. Please reload this page.
-
Is it feasible to call a dynamic library that uses the Tokio runtime and exposes a synchronous function interface via the C ABI from a main program that also uses the Tokio runtime?
This dynamic library internally uses tokio::runtime::Builder to create a new runtime, and the main program calls it using spawn_blocking.
Beta Was this translation helpful? Give feedback.
All reactions