awesome: arbitrary expressions excepted without braces
This commit is contained in:
1 parent
14961023f9
commit
4c85bcfdc8
40 files changed
+825
-767
No files matched your search
+3
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user