awesome: arbitrary expressions excepted without braces

This commit is contained in:
Jonathan Kelley committed 2021-12-30 03:14:47 -05:00
1 parent 14961023f9
commit 4c85bcfdc8
40 files changed
+825 -767

No files matched your search

+3 -2
View File
@@ -15,8 +15,9 @@ fn app(cx: Scope) -> Element {
use_future(&cx, || {
for_async![count];
async move {
while let _ = tokio::time::sleep(Duration::from_millis(1000)).await {
*count.modify() += 1;
loop {
tokio::time::sleep(Duration::from_millis(1000)).await;
count += 1;
}
}
});