Skip to content
New issue

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

Graceful shutdown futures lite #766

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

GWBasic
Copy link

@GWBasic GWBasic commented Dec 16, 2020

This is a replacement for #746. (Too many merge conflicts.)

Fixes #528

It works by awaiting on two futures and returns when the first completes.

At this point, this is just a preview of how to cancel the server. Only TcpListener is implemented and tested. I still need to add documentation.

(For context, see #528 (comment))

This was referenced Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Graceful shutdown
1 participant