create a way to hoist ownership to a different scope

This commit is contained in:
Evan Almloff committed 2023-08-04 17:50:05 -07:00
1 parent 49001c59d3
commit dce418140a
4 files changed
+53 -6

No files matched your search

+4
View File
@@ -70,6 +70,10 @@ impl<T: 'static> Signal<T> {
}
}
pub fn origin_scope(&self) -> ScopeId {
self.inner.origin_scope()
}
pub fn read(&self) -> Ref<T> {
let inner = self.inner.read();
if let Some(current_scope_id) = current_scope_id() {