When built with tokio, provide a SingleThreadExecutor

An application can (optionally) use this to spawn a single tokio thread
instead of one per processor thread.
This commit is contained in:
Ian Douglas Scott 2023-01-18 15:09:55 -08:00 committed by Jeremy Soller
parent abf8fc96c2
commit db2e6c236d
3 changed files with 35 additions and 1 deletions

View file

@ -17,6 +17,11 @@ pub mod keyboard_nav;
pub mod theme;
pub mod widget;
#[cfg(feature = "tokio")]
mod single_thread_executor;
#[cfg(feature = "tokio")]
pub use single_thread_executor::SingleThreadExecutor;
pub mod settings;
pub use settings::settings;