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
When I run use agnostik::spawn to spawn a task with the Smol executor feature, the task is not actually running unless I await the join handle.
I expected that the task should spawned in the "background" so to speak so I could continue executing other async code while it runs. Smol accomplishes this by detach()-ing the task, but then you can't await on it after that so that seems like it breaks the agnostik::JoinHandle. 🤔 Not sure how we want to handle that.
The text was updated successfully, but these errors were encountered:
When I run use
agnostik::spawn
to spawn a task with the Smol executor feature, the task is not actually running unless I await the join handle.I expected that the task should spawned in the "background" so to speak so I could continue executing other async code while it runs. Smol accomplishes this by
detach()
-ing the task, but then you can't await on it after that so that seems like it breaks theagnostik::JoinHandle
. 🤔 Not sure how we want to handle that.The text was updated successfully, but these errors were encountered: