mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-11 15:07:08 +00:00
fix: spawn task
This commit is contained in:
parent
fc2aaa7df5
commit
cee63ae370
1 changed files with 1 additions and 3 deletions
|
@ -12,9 +12,7 @@ fn test_memory_leak() {
|
|||
fn app(cx: Scope) -> Element {
|
||||
let val = cx.generation();
|
||||
|
||||
cx.spawn(async {
|
||||
tokio::time::sleep(std::time::Duration::from_millis(100000)).await;
|
||||
});
|
||||
cx.spawn(async {});
|
||||
|
||||
if val == 2 || val == 4 {
|
||||
return cx.render(rsx!(()));
|
||||
|
|
Loading…
Reference in a new issue