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:
parent
abf8fc96c2
commit
db2e6c236d
3 changed files with 35 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue