Skip to content

Releases: cilium/workerpool

v1.2.0

09 Feb 15:58
Compare
Choose a tag to compare

What's Changed

  • doc: document how to cancel the context of the task funcs by @rolinh in #43
  • add NewWithContext by @kaworu in #44

CI updates

  • ci: update golangci-lint to v1.48.0, update to Go 1.19, enable more linters by @rolinh in #38
  • ci: add dependabot for GitHub actions, update golangci-lint by @rolinh in #39
  • ci: Bump actions/checkout from 3.2.0 to 3.3.0 by @dependabot in #40
  • ci: Bump golangci/golangci-lint-action from 3.3.1 to 3.4.0 by @dependabot in #41
  • update golangci-lint to v1.51.1, test with Go 1.20 by @rolinh in #42

New Contributors

Full Changelog: v1.1.3...v1.2.0

v1.1.3

24 May 10:16
Compare
Choose a tag to compare

Minor changes

Full Changelog: v1.1.2...v1.1.3

v1.1.2

29 Mar 07:34
Compare
Choose a tag to compare

Minor changes

  • doc: improve package doc and add a note about unbounded task results by @rolinh in #30
  • Avoid crash when running task with (*task).run == nil by @tklauser in #31
  • reorder struct fields for optimal memory alignment by @rolinh in #33

Other changes

  • ci: bump golangci-lint to 1.43.0 by @tklauser in #32
  • ci: update Go to 1.18, golangci-lint to 1.45.2 by @tklauser in #34
  • Wait for worker to be submitted in TestWorkerPoolLen by @tklauser in #35
  • ci: enable more golangci-lint checkers, update config for Go 1.18 by @rolinh in #36

Full Changelog: v1.1.1...v1.1.2

v1.1.1

22 Oct 09:47
Compare
Choose a tag to compare

Minor changes:

  • tasks: create taskResult to be returned by Drain by @kaworu in #29

Full Changelog: v1.1.0...v1.1.1

v1.1.0

14 Sep 15:43
Compare
Choose a tag to compare

Minor Changes:

  • workerpool: add Len() to retrieve the count of running workers (#21, @kaworu)

Other Changes:

v1.0.0

19 Feb 10:14
Compare
Choose a tag to compare

Initial stable release of package workerpool.

What's Changed

  • Document Submit and Drain returning ErrClosed by @tklauser in #1
  • Close tasks channel after WaitGroup.Wait by @tklauser in #3
  • test: fix flaky drain test by @rolinh in #4
  • Waiit for the "run" routine to return on Close by @rolinh in #5
  • workerpool: add Cap() to retrieve the WorkerPool capacity by @kaworu in #7
  • make Close() return an error when called more than once by @kaworu in #6
  • Test Drain on already drained worker pool by @tklauser in #8
  • tests cleanup by @kaworu in #9
  • Test that New(n) with n ≤ 0 will panic by @tklauser in #10
  • workerpool: refactor results to avoid unnecessary copy by @kaworu in #11
  • add context to the task function signature by @rolinh in #12
  • ci: update Go to 1.15.8 by @kaworu in #13
  • cosmetic testing improvements by @kaworu in #14
  • ci: update Go to 1.16 by @rolinh in #15
  • .github: use matrix strategy and test with Go 1.15 as well by @tklauser in #16
  • doc: remove experimental warning in the readme by @rolinh in #17
  • doc: add Go doc reference and CI badges to the readme by @rolinh in #18

Full Changelog: https://github.com/cilium/workerpool/commits/v1.0.0