wayvr/wlx-common/src/async_executor.rs

8 lines
158 B
Rust

use std::rc::Rc;
pub type AsyncExecutor = Rc<smol::LocalExecutor<'static>>;
pub fn create_local() -> AsyncExecutor {
Rc::new(smol::LocalExecutor::new())
}