-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Go 1.20 is going to add native support for batched/multi errors, and we will be able to eventually deprecate errorsbp.Batch, but we can only do so after we dropped support for go 1.19. Before that, make errorsbp.Batch play nicer with go 1.20 by: * Implement the new `Unwrap() []error` optional interface. * Make errorsbp.BatchSize also support other errors implementing the new optional interface.
- Loading branch information
Showing
2 changed files
with
110 additions
and
5 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