From ff3d772756777eac59c8c628043e25fcb82ce6e2 Mon Sep 17 00:00:00 2001 From: Ilya Maximov Date: Wed, 23 Feb 2022 19:47:38 +0100 Subject: [PATCH] feat: add a method to access the scheduler --- packages/core/src/scopes.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/core/src/scopes.rs b/packages/core/src/scopes.rs index c6ba5b66a..92bee79a6 100644 --- a/packages/core/src/scopes.rs +++ b/packages/core/src/scopes.rs @@ -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 { + 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