create a way to hoist ownership to a different scope
This commit is contained in:
1 parent
49001c59d3
commit
dce418140a
4 files changed
+53
-6
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user