Name Description Size
global.rs 7202
mod.rs A global dispatcher queue. # Example - Global Dispatch queue The global dispatch queue is pre-configured with a maximum queue size of 100 tasks. ```rust,ignore // Ensure the dispatcher queue is being worked on. dispatcher::flush_init(); dispatcher::launch(|| { println!("Executing expensive task"); // Run your expensive task in a separate thread. }); dispatcher::launch(|| { println!("A second task that's executed sequentially, but off the main thread."); }); ``` 19263