Documentation ¶
Overview ¶
Package bytesub provides the ability for many clients to subscribe to the latest value of a byte array.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteSub ¶
type ByteSub struct {
// contains filtered or unexported fields
}
func (*ByteSub) AnnounceLatest ¶
AnnounceLatest writes b to all of the subscribers, with caveats listed in Subscribe.
func (*ByteSub) Subscribe ¶
Subscribe writes the latest value in a single call to w.Write. It does not guarantee that all values published to AnnounceLatest will be written. However once things catch up, it will write the latest value. If no values have been announced, waits for a value before writing.
Click to show internal directories.
Click to hide internal directories.