Fix warnings and compile errors

This commit is contained in:
Jonathan Kelley committed 2024-02-03 13:10:16 -08:00
1 parent e767e49d5e
commit 7d78e5e250
7 files changed
+26 -241

No files matched your search

+6
View File
@@ -23,6 +23,7 @@ thread_local! {
}
impl ReactiveContext {
/// Create a new reactive context
pub fn new(scope: Option<ScopeId>) -> Self {
let (tx, rx) = flume::unbounded();
@@ -104,6 +105,11 @@ impl ReactiveContext {
.insert(signal, rc_list);
}
/// Get the scope that inner CopyValue is associated with
pub fn origin_scope(&self) -> ScopeId {
self.inner.origin_scope()
}
/// Wait for this reactive context to change
pub async fn changed(&self) {
let rx = self.inner.read().receiver.clone();