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

gambol99 / go-marathon / 644 / 1
71%
master: 69%

Build:
Build:
LAST BUILD BRANCH: cluster
DEFAULT BRANCH: master
Ran 04 Dec 2018 09:32AM UTC
Files 9
Run time 1min
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

25 Sep 2016 09:00PM UTC coverage: 70.78%. First build
644.1

Pull #163

travis-ci

timoreimann
Signal goroutine termination on event listener removal.

Fixes goroutine/memory leakage where an event consumer would stop
receiving events from the channel while pending goroutines were still
trying to deliver some.

The chosen approach only makes sense with unbuffered channels due to the
`select` involved; as such, we change AddEventListener's signature to
return a channel to the consumer instead of expecting one. Passing
buffered channels to AddEventListener was never overly useful in the
first place, however, as we use goroutines to avoid blocking on slow
receivers, implictly doing event buffering this way already.

Changes in detail:

- Modify AddEventListener's signature.
- Change listener's value type to struct holding both filters and a
  per-listener done channel.
- Close done channel on RemoveEventListener, and select between outbound
  and done channel in event-processing goroutine.
- Extend tests.
- Make existing tests more robust.
- Update examples.
- Update README file.
Pull Request #163:

18 of 83 branches covered (21.69%)

390 of 551 relevant lines covered (70.78%)

0.71 hits per line

Source Files on job 644.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1249
  • Travis Job 644.1
  • 86837838 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc