PackageTrack

Go modules · #2348

github.com/kelindar/event

v1.5.2kelindar/event

Release timeline

10 releases since 2020
202120222023202420252026

Releases

  1. v1.5.3-0.20250630111457-615f1cc2871330 Jun 2025pre-release

    Nothing published for this version

  2. v1.5.229 May 2025
    Release notes

    What's Changed

    • Add backpressure handling to keep the memory in check when over-publishing by @kelindar in #7

    Full Changelog: v1.5.1...v1.5.2

    Open source →
  3. v1.5.129 May 2025
    Release notes

    What's Changed

    • Fix ticker leak and improve readme by @kelindar in #6

    Full Changelog: v1.5.0...v1.5.1

    Open source →
  4. v1.5.028 May 2025
    Release notes

    What's Changed

    • Enhance Dispatcher with atomic registry and add concurrent subscription by @kelindar in #5

    Full Changelog: v1.4.1...v1.5.0

    Open source →
  5. v1.4.17 Oct 2023
    Release notes

    What's Changed

    • Export default dispatcher

    Full Changelog: v1.3.0...v1.4.1

    Open source →
  6. v1.4.026 Dec 2022
    Release notes

    What's Changed

    • Use sync.Cond instead of channel for broadcast by @kelindar in #4

    Full Changelog: v1.3.0...v1.4.0

    Open source →
  7. v1.3.03 Dec 2022
    Release notes

    What's Changed

    For convenience, this package now provides a default global dispatcher that can be used with On() and Emit() package-level functions.

    // Subcribe to event A, and automatically unsubscribe at the end
    defer event.On(func(e Event) {
        println("(consumer)", e.Data)
    })()
    
    // Publish few events
    event.Emit(newEventA("event 1"))
    event.Emit(newEventA("event 2"))
    event.Emit(newEventA("event 3"))

    Full Changelog: v1.2.0...v1.3.0

    Open source →
  8. v1.2.03 Dec 2022
    Release notes

    What's Changed

    • Make API more usable for generic types by @kelindar in #2

    Full Changelog: v1.1.0...v1.2.0

    Open source →
  9. v1.1.018 Jun 2022
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v1.0.0...v1.1.0

    Open source →
  10. v1.0.017 Jun 2020

    Nothing published for this version