Merge pull request #1441 from ealmloff/fix-uplink

Expose public methods for manipulating the global runtime
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2023-09-16 11:59:59 -07:00
commit 13f10fea1b
3 files changed
+65 -8

No files matched your search

+5
View File
@@ -662,6 +662,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 {