• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

go-pkgz / syncs
99%

Build:
DEFAULT BRANCH: master
Repo Added 08 Oct 2018 06:27PM UTC
Files 4
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • ci/go-version-from-go-mod
  • ctx-cancel-queued
  • discard-after-threshold
  • discard-mode
  • fix-ci-caching
  • fix-errsizedgroup-race
  • fix-queued-termination
  • master
  • modernize-and-deps
  • rbac
  • refs/tags/v0.10.4
  • refs/tags/v1.2.0
  • refs/tags/v1.3.0
  • refs/tags/v1.3.1
  • refs/tags/v1.3.3
  • refs/tags/v1.3.4
  • v1.0.0
  • v1.1.0
  • v1.1.1

17 Nov 2026 05:45AM UTC coverage: 99.015% (+0.09%) from 98.93%
44026296992

push

github

umputun
Add DiscardAfterThreshold option for SizedGroup

DiscardAfterThreshold(n) accepts up to n calls in flight, running or waiting
to run, and discards the rest. Go never blocks: accepted calls beyond the
group size wait in their goroutines. A second semaphore of size n gates
admission, released when the call's goroutine ends, including the canceled
skip path.

With n above the group size the option overrides Preemptive and Discard in
any order, since either left on would block the caller or drop an admitted
call holding its slot. With n at or below the group size, 0 included, it
works as Discard. ErrSizedGroup treats it as Discard.

Fixed #5

17 of 17 new or added lines in 2 files covered. (100.0%)

201 of 203 relevant lines covered (99.01%)

1948.61 hits per line

Relevant lines Covered
Build:
Build:
203 RELEVANT LINES 201 COVERED LINES
1948.61 HITS PER LINE
Source Files on master
  • Tree
  • List 4
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
44026296992 master Add DiscardAfterThreshold option for SizedGroup DiscardAfterThreshold(n) accepts up to n calls in flight, running or waiting to run, and discards the rest. Go never blocks: accepted calls beyond the group size wait in their goroutines. A second s... push 17 Nov 2026 05:46AM UTC umputun github
99.01
44025480166 discard-after-threshold Add DiscardAfterThreshold option for SizedGroup DiscardAfterThreshold(n) accepts up to n calls in flight, running or waiting to run, and discards the rest. Go never blocks: accepted calls beyond the group size wait in their goroutines. A second s... Pull #21 17 Nov 2026 05:39AM UTC umputun github
99.01
41331251129 master Take the CI Go version from go.mod CI pinned its Go version separately from go.mod. It now reads the major and minor version from the go directive and installs the latest patch release of it. push 01 Nov 2026 05:24PM UTC umputun github
98.93
41300287732 ci/go-version-from-go-mod Take the CI Go version from go.mod CI pinned its Go version separately from go.mod. It now reads the major and minor version from the go directive and installs the latest patch release of it. Pull #20 01 Nov 2026 11:06AM UTC paskal github
98.93
41299544483 ci/go-version-from-go-mod Take the CI Go version from go.mod CI pinned its Go version separately from go.mod. It now reads the major and minor version from the go directive and installs the latest patch release of it. push 01 Nov 2026 10:55AM UTC paskal github
98.93
37140564891 refs/tags/v1.3.4 Release the semaphore permit when SizedGroup skips a canceled preemptive call With Preemptive the permit is taken in Go before the goroutine starts. When the goroutine then found the context canceled it returned without unlocking, so each such ca... push 03 Oct 2026 05:27PM UTC umputun github
98.93
37140497299 master Release the semaphore permit when SizedGroup skips a canceled preemptive call With Preemptive the permit is taken in Go before the goroutine starts. When the goroutine then found the context canceled it returned without unlocking, so each such ca... push 03 Oct 2026 05:26PM UTC umputun github
98.93
37140236136 ctx-cancel-queued Release the semaphore permit when SizedGroup skips a canceled preemptive call With Preemptive the permit is taken in Go before the goroutine starts. When the goroutine then found the context canceled it returned without unlocking, so each such ca... Pull #18 03 Oct 2026 05:22PM UTC umputun github
98.93
37140063376 ctx-cancel-queued Skip queued callbacks in ErrSizedGroup after context cancellation Cancellation was checked only on entry to Go, so callbacks already waiting for a semaphore permit still ran after the group's context was canceled and Wait returned nil. The check ... Pull #18 03 Oct 2026 05:19PM UTC umputun github
98.9
37139997980 ctx-cancel-queued Skip queued callbacks in ErrSizedGroup after context cancellation Cancellation was checked only on entry to Go, so callbacks already waiting for a semaphore permit still ran after the group's context was canceled and Wait returned nil. The check ... push 03 Oct 2026 05:18PM UTC umputun github
98.9
See All Builds (74)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc