Replies: 2 comments 2 replies
-
Tokio doesn't come with a built-in way to do this, but check out this page on graceful shutdown. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, Alice. Good to know the mpsc channel way. What do you think? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm developing https://github.com/zineland/zine, when I run
zine build
it spawnsa lot of tasks (including
spawn_blocking()
), however, some watch channels willfail due to the process exit without waiting for all tasks to finish.
Those tasks spawned in multiple places, I can't simply use
join_all()
to waitall it is finished. I hope I can get notified once all spawned tasks are finished.
Here is a simple snippet to demonstrate my idea:
Beta Was this translation helpful? Give feedback.
All reactions