Download Latest Version v0.3.0 source code.tar.gz (23.0 kB)
Email in envelope

Get an email when there's a new version of conc

Home / v0.3.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2023-02-25 1.6 kB
v0.3.0 source code.tar.gz 2023-02-25 23.0 kB
v0.3.0 source code.zip 2023-02-25 39.2 kB
Totals: 3 Items   63.9 kB 0

Some notable changes in this release:

  • pool: All pool types now panic if configured after use.
  • pool: ContextPool and ResultContextPool now always cancels its context when Wait() returns.
  • pool: ContextPool and ResultContextPool now cancels its context when a task panics.
  • panics: panics.RecoveredPanic and panics.NewRecoveredPanic(...) have been renamed panics.Recovered and panics.NewRecovered(...) respectively.
  • panics: panics.Recovered no longer implements error directly, which would previously have unintended side effects - instead, it can be converted into an error implementation explicitly with (*Recovered).AsError().
  • panics: Added a package-level panics.Try(...) for recovering from panics from a single function.
  • multierrors: For pools that return multiple errors:
  • in Go 1.20 and later, conc now uses the standard library multi-error implementation
  • in Go 1.19 and earlier, conc now uses the go.uber.org/multierr library

Full changelog: https://github.com/sourcegraph/conc/compare/v0.2.0...v0.3.0

Some of the changes listed above are breaking changes - this package is currently pre-1.0, and there are likely to be other breaking changes before a 1.0 release as we stabilize the APIs and tweak defaults. Please open an issue if you have questions, concerns, or requests that you'd like addressed before the 1.0 release. Currently, a 1.0 is targeted for March 2023.

Source: README.md, updated 2023-02-25