Files
dioxus/packages/core/src/scheduler/mod.rs
T

19 lines
417 B
Rust

use crate::ScopeId;
mod task;
mod wait;
pub use task::*;
/// The type of message that can be sent to the scheduler.
///
/// These messages control how the scheduler will process updates to the UI.
#[derive(Debug)]
pub(crate) enum SchedulerMsg {
/// Immediate updates from Components that mark them as dirty
Immediate(ScopeId),
/// A task has woken and needs to be progressed
TaskNotified(Task),
}