fix: spawn task

This commit is contained in:
Jonathan Kelley 2022-12-13 16:04:41 -08:00
parent fc2aaa7df5
commit cee63ae370

View file

@ -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!(()));