Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I would like to know if a user presses
This is common in applications which do task-based work, such as network servers or clients. The first "ask to exit" causes them to stop creating new work, and the second "ask to exit" tries much harder to cancel in-flight work (e.g. by killing jobs), but still do a clean shutdown.
This isn't possible with the current code, because the
Maybe the crate could expose a
I'm worried this is essentially identical to the following, however, ignoring multiple runtimes (
Or something like FauxFaux/async-echo@e843262 , maybe: