expose public methods for manipulating the global runtime

This commit is contained in:
Evan Almloff committed 2023-09-08 10:05:58 -05:00
1 parent de87ba6548
commit 9496853fbc
3 files changed
+63 -9

No files matched your search

+5
View File
@@ -658,6 +658,11 @@ impl VirtualDom {
fn finalize(&mut self) -> Mutations {
std::mem::take(&mut self.mutations)
}
/// Get the current runtime
pub fn runtime(&self) -> Rc<Runtime> {
self.runtime.clone()
}
}
impl Drop for VirtualDom {