-
Notifications
You must be signed in to change notification settings - Fork 4
Tokio integration #92
Comments
The general concept should be pretty simple I think. We can base our design on https://rust-lang.github.io/async-book/02_execution/04_executor.html. We create an executor thread that will hold a |
The executor would use a channel that receive taks containing a However, for the channel to be polled in |
We could use a tweaked version of https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-channel. |
We could implement a channel like crossbeam's version, but also use a |
We could event write an abtraction like a |
This should be pretty fully unblocked. Any idea of where to start in the current landscape? So far I've been trying to write my own |
I'm not using libzmq anymore, which is why this hasn't been implemented yet, but from what I recall its quite tricky to do well. Ideally you would want some sort of reactor that polls all the sockets via the If you are looking for channels within the same address space, I would recommand the futures-intrusive crate since they are way easier to use & way faster and support proper Finally I would suggest against using |
Blocked until async await stabilization.
The text was updated successfully, but these errors were encountered: