-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Replace done channel with a WaitGroup to fix a race condition and to properly wait for *all* active batches during shutdown - Use time.AfterFunc() instead of manually spawning a goroutine and calling sleep() - Improve a few method names and doc comments - move some logic from batch() to submitWork() so it's always obvious what is or isn't guarded by the lock
- Loading branch information
Showing
1 changed file
with
26 additions
and
27 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