-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Listen for signals in the main task (#2086)
There's no need to spawn a separate task for it, because as soon as the signals are registered, any received signals lead to events being sent to the streams. And since the channel used to notify that a shutdown signal was received is never dropped, the future waiting for a signal can just be polled directly.
- Loading branch information
Showing
1 changed file
with
19 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters