8000 Releases · kelindar/event · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Releases: kelindar/event

v1.5.2

29 May 20:20
a21322c
Compare
Choose a tag to compare

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

v1.5.1

29 May 08:43
f03bfd3
Compare
Choose a tag to compare

What's Changed

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

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

v1.5.0

28 May 22:35
b0d5892
Compare
Choose a tag to compare

What's Changed

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

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

v1.4.1

07 Oct 20:09
Compare
Choose a tag to compare

What's Changed

  • Export default dispatcher

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

v1.4.0

26 Dec 11:47
5ac9b3a
Compare
Choose a tag to compare

What's Changed

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

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

v1.3.0

03 Dec 11:19
51911ab
Compare
Choose a tag to compare

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

v1.2.0

03 Dec 11:00
e450861
Compare
Choose a tag to compare

What's Changed

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

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

v1.1.0

18 Jun 17:56
0a1be6a
Compare
Choose a tag to compare

What's Changed

New Contributors

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

v1.0.0

17 Jun 05:57
Compare
Choose a tag to compare
first commit
0