You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of time, spawned tokio task should be aborted, so we need to pass that JoinHandle or AbortHandle to ctx.
It would be better to spawn task from ctx, like ctx.task(async move { ... }); then let handle = tokio::spawn(async move {...}); ctx.abort_on_unmount(handle); because it's too long.
The text was updated successfully, but these errors were encountered:
Most of time, spawned tokio task should be aborted, so we need to pass that JoinHandle or AbortHandle to ctx.
It would be better to spawn task from ctx, like
ctx.task(async move { ... });
thenlet handle = tokio::spawn(async move {...}); ctx.abort_on_unmount(handle);
because it's too long.The text was updated successfully, but these errors were encountered: