We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server should terminate gracefully, closing all the resources and tasks. This could be done through tokio task tracker (see join set as well).
Canceling event could be awaited in main loop as following:
tokio::select! { conn = listener.accept() => { /* process conn */ }, _ = cancel_event => { /* shutdown */ } }
Tasks spawned for clients could be spawned through TaskTracker and then awaited on shutdown.
TaskTracker
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Server should terminate gracefully, closing all the resources and tasks.
This could be done through tokio task tracker (see join set as well).
Canceling event could be awaited in main loop as following:
Tasks spawned for clients could be spawned through
TaskTracker
and then awaited on shutdown.The text was updated successfully, but these errors were encountered: