Replies: 2 comments
-
Does this help? https://github.com/libp2p/rust-libp2p/blob/master/misc/server/src/main.rs Also, on a related note, we'd actually like to move to prefering tokio everywhere: #4449 |
Beta Was this translation helpful? Give feedback.
0 replies
-
How events are handled is agnostic to which executor you are using. Picking the right executor only matters because tokio for example requires all its IO futures to run on a runtime thread because only those have a reactor running. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I tried searching for some example implementations of swarm using a tokio executor and I want to specifically refer to how events are implemented in those examples.
Beta Was this translation helpful? Give feedback.
All reactions