-
Notifications
You must be signed in to change notification settings - Fork 155
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
Uniform AsyncRuntime
channel interfaces
#1198
Comments
👋 Thanks for opening this issue! Get help or engage by:
|
SteveLauC
changed the title
Uniform the
Uniform Jul 24, 2024
AsyncRuntime
channel interfacesAsyncRuntime
channel interfaces
/assignme |
3 tasks
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trait
AsyncRuntime
exposes various associated channel types:Currently, both MPSC and Watch are exposed through traits:
https://github.com/datafuselabs/openraft/blob/ec284cb4813019d8b3a43a8cd74f3e1aa39eb882/openraft/src/type_config/async_runtime/mod.rs#L120-L122
Oneshot is different, it is scattered in the trait:
To provide a consistent interface, I kinda think we should expose Oneshot in the way used by MPSC and Watch, i.e., something like:
The text was updated successfully, but these errors were encountered: