Small change in iter

This commit is contained in:
2025-11-01 16:58:10 +01:00
parent 23edb6c917
commit 6424ad3390
+4 -12
View File
@@ -16,20 +16,12 @@ pub fn app(screen: Arc<Screen>) -> Rsx {
let count = use_state(1);
run! {
ref count {
ref count, items {
loop {
if count.get_dl() == 20 {
break;
}
std::thread::sleep(std::time::Duration::from_millis(200));
**count.get() += 1;
}
}
}
run! {
use count ref items {
items.get().push(count.get_dl());
**count.get() += 1;
std::thread::sleep(std::time::Duration::from_millis(100));
}
}
}