wip: rip out unsafe task engine

This commit is contained in:
Jonathan Kelley committed 2021-12-26 14:22:30 -05:00
1 parent cda759c659
commit c7d001cbb4
10 files changed
+144 -136

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ fn main() {
fn app(cx: Scope<()>) -> Element {
let mut count = use_state(&cx, || 0);
cx.push_task(|| async move {
cx.push_future(|| async move {
tokio::time::sleep(Duration::from_millis(100)).await;
count += 1;
});