vendor/github.com/ysmood/goob/readme.md

25 lines · 659 bytes

 1# Overview
 2
 3A lightweight observable lib. Go channel doesn't support unlimited buffer size,
 4it's a pain to decide what size to use, this lib will handle it dynamically.
 5
 6- unlimited buffer size
 7- one publisher to multiple subscribers
 8- thread-safe
 9- subscribers never block each other
10- stable event order
11
12## Examples
13
14See [examples_test.go](examples_test.go).
15
16## Benchmark
17
18```txt
19goos: darwin
20goarch: amd64
21pkg: github.com/ysmood/goob
22cpu: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
23BenchmarkPublish-12    	 7493547	       143.9 ns/op	      86 B/op	       0 allocs/op
24BenchmarkConsume-12    	 4258910	       275.5 ns/op	       0 B/op	       0 allocs/op
25```