state management as a child

This commit is contained in:
2025-07-29 17:51:03 +02:00
parent de9039dbaf
commit db66803347
5 changed files with 19 additions and 4 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ fn test(inc: i32) -> Rsx {
std::thread::spawn({
let count = count.clone();
move || loop {
std::thread::sleep(std::time::Duration::from_millis(300));
std::thread::sleep(std::time::Duration::from_millis(50));
**count.get() += inc;
}
});