feat: add a method to access the scheduler

This commit is contained in:
Ilya Maximov committed 2022-02-23 19:47:38 +01:00
1 parent bda4a71a72
commit ff3d772756
1 file changed
+5
+5
View File
@@ -579,6 +579,11 @@ impl ScopeState {
self.our_arena_idx
}
/// Get a handle to the raw update scheduler channel
pub fn scheduler_channel(&self) -> UnboundedSender<SchedulerMsg> {
self.tasks.sender.clone()
}
/// Create a subscription that schedules a future render for the reference component
///
/// ## Notice: you should prefer using prepare_update and get_scope_id