/broadcast

Broadcast channels for Go

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Broadcast

Broadcast channels for Go! This is a lightweight implementation using just channels and no other synchronization

How to Use:

Making a channel:

b := make(broadcast.Broadcast)

Broadcasting a message:

b <- message // Combine with whatever select magic you'd like!

Receiving a message:

message := b.Receive()

More info: https://godoc.org/github.com/ericpauley/broadcast