Skip to main content

Module runtime

Module runtime 

Source
Expand description

Dedicated-thread tokio runtime for mesh-client.

The tokio runtime is owned by a dedicated OS thread so that its Drop never executes inside a tokio context. The public CoreRuntime holds only a Handle plus a shutdown channel to the owning thread, which means dropping CoreRuntime from arbitrary call sites (including from inside a tokio task) only signals the owning thread and joins it — the real tokio::runtime::Runtime::drop always runs on the dedicated thread, which is itself not inside a tokio context.

Structs§

CoreRuntime

Enums§

RuntimeError