This commit is contained in:
2026-04-15 20:32:09 -04:00
parent 24299bfa17
commit e7a50cbdbc
5 changed files with 681 additions and 586 deletions
+7 -1
View File
@@ -1,8 +1,9 @@
use std::sync::{Arc, Mutex, MutexGuard};
use iris::prelude::*;
use openworm::net::UserId;
use crate::{net::NetHandle, ui::UserCache};
use crate::{Rsc, net::NetHandle, ui::UserCache};
// TODO: this really should not be async...
// I mean it could be used async but all widgets
@@ -32,4 +33,9 @@ impl Session {
pub fn get(&self) -> MutexGuard<'_, SessionInner> {
self.0.try_lock().unwrap()
}
pub fn reactive_span(&self, rsc: &mut Rsc) -> WeakWidget {
let span = Span::empty(Dir::DOWN).add(rsc);
span
}
}