mod.rs 433 B

12345678910111213141516171819
  1. use crate::ScopeId;
  2. use slab::Slab;
  3. mod task;
  4. mod wait;
  5. pub use task::*;
  6. /// The type of message that can be sent to the scheduler.
  7. ///
  8. /// These messages control how the scheduler will process updates to the UI.
  9. #[derive(Debug)]
  10. pub(crate) enum SchedulerMsg {
  11. /// Immediate updates from Components that mark them as dirty
  12. Immediate(ScopeId),
  13. /// A task has woken and needs to be progressed
  14. TaskNotified(Task),
  15. }