-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(manager): improved NewManager implementation
Replaces the (optional) Manager implementation, adding the ability to check errors (from added tickers) with errors.Is, and provides ErrManagerStopped, for identifying and handling failed attempts to add to a manager, that is stopping or stopped. Otherwise, the new behavior resembles the old, as closely as possible. The original motivator for this change was fixing an unhandled edge case, where a race between add and stop could lead to a deadlock. The new implementation is both more polished, and significantly more idiomatic.
- Loading branch information
1 parent
5cc319f
commit 0eb1579
Showing
5 changed files
with
354 additions
and
74 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
Oops, something went wrong.