Skip to content

surasithaof/eventbus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EventBus

Go Report Card Go Reference license

A simple Go package for implementing an internal async event bus. This is for learning Goroutine to handle asynchronous event publishing and subscription, making it efficient and easy to integrate with Go apps.

Benchmark

go test -benchtime 10000000x -benchmem -run=^$ -bench=.
goos: darwin
goarch: arm64
pkg: github.com/surasithaof/eventbus
cpu: Apple M1
BenchmarkSubscribe-8    10000000                57.72 ns/op           42 B/op          0 allocs/op
BenchmarkPublish-8      10000000               406.3 ns/op            96 B/op          2 allocs/op
PASS
ok      github.com/surasithaof/eventbus 4.909s

About

A simple Go package for implementing an internal async event bus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages