-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support app shutdown before app.Done() is called (#805)
* Record app shutdown and offer the signal on app.Done() * Add data race test * Add lock for shutdown signal * Pull test into function and block go routines on ready channel * lint * Return channel early if shutdown signal received * Remove comment * Remove fmt qualifier for assert error message * Clarify comment * Assert no error on shutdown for TestDataRace * Apply suggestions from code review * go fmt Co-authored-by: Abhinav Gupta <[email protected]>
- Loading branch information
Showing
3 changed files
with
78 additions
and
6 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
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
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