Skip to content
New issue

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

expose some structs to be able to use a non-tokio executor #296

Closed
wants to merge 1 commit into from

Conversation

vhdirk
Copy link

@vhdirk vhdirk commented Mar 19, 2020

For Inox(https://github.com/vhdirk/inox/) I'm combing tarpc with the glib executor as opposed to the default tokio executor.

In order to also have deadlines for requests, I needed to fork ClientHandler in my own project. That requires some changes in tarpc so I can create, for instance, a response struct. See https://github.com/vhdirk/inox/blob/master/inox-gtk/src/webextension/rpc.rs

I'm still working on the client side. That one is harder since tokio's TimeOuts are not compatible with custom executors, but they are used throughout the (generated) client code.

@@ -28,7 +28,7 @@ pub mod client;
pub mod context;
pub mod server;
pub mod transport;
pub(crate) mod util;
pub mod util;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What did you need util for? This module isn't intended to be publicly exposed.

@tikue
Copy link
Collaborator

tikue commented Apr 13, 2020

Sorry for the long wait! Given that we don't currently have a better way to make tarpc executor agnostic, I think I'm basically okay with this. I'm a little concerned about forward compatibility hazards, but not sufficiently concerned to block this.

@tikue tikue force-pushed the master branch 6 times, most recently from 978f374 to 66cdc99 Compare March 8, 2021 19:36
@tikue
Copy link
Collaborator

tikue commented Mar 9, 2021

@vhdirk I'm sorry this languished for so long! :( I think it's best at this point to close it. I think there's still a conversation to be had about how best to support different executors.

@tikue tikue closed this Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants