Expand description
This crate provides a MonoioRuntime type, which has AsyncRuntime
implemented so that you can use Openraft with Monoio.
ⓘ
pub struct TypeConfig {}
impl openraft::RaftTypeConfig for TypeConfig {
// Other type are omitted
type AsyncRuntime = openraft_rt_monoio::MonoioRuntime;
}§NOTE
- For the Openraft dependency used with this crate
- You can disable the
defaultfeature as you don’t need the built-in Tokio runtime. - The
single-threadedfeature needs to be enabled or this crate won’t work.
- You can disable the
- With the
single-threadedfeature enabled, the handle typeRaftwill be no longerSendandSync. - Even though this crate allows you to use Monoio, it still uses some primitives from Tokio
Watch: Monoio (orlocal_sync) does not have a watch channel.Mutex: Monoio does not provide a Mutex implementation.
Structs§
- Monoio
Runtime AsyncRuntimeimplementation for Monoio.