fix: spawn task
This commit is contained in:
1 parent
fc2aaa7df5
commit
cee63ae370
1 file changed
+1
-3
@@ -12,9 +12,7 @@ fn test_memory_leak() {
|
|||||||
fn app(cx: Scope) -> Element {
|
fn app(cx: Scope) -> Element {
|
||||||
let val = cx.generation();
|
let val = cx.generation();
|
||||||
|
|
||||||
cx.spawn(async {
|
cx.spawn(async {});
|
||||||
tokio::time::sleep(std::time::Duration::from_millis(100000)).await;
|
|
||||||
});
|
|
||||||
|
|
||||||
if val == 2 || val == 4 {
|
if val == 2 || val == 4 {
|
||||||
return cx.render(rsx!(()));
|
return cx.render(rsx!(()));
|
||||||
|
|||||||
Reference in new issue
Block a user