Add docstring to pubsub.Publisher
Signed-off-by: Alexander Morozov <lk4d4@docker.com> Upstream-commit: 7080f5d1cf2c9f86d89a84424394b2c61e925843 Component: engine
This commit is contained in:
@ -19,6 +19,8 @@ func NewPublisher(publishTimeout time.Duration, buffer int) *Publisher {
|
||||
|
||||
type subscriber chan interface{}
|
||||
|
||||
// Publisher is basic pub/sub structure. Allows to send events and subscribe
|
||||
// to them. Can be safely used from multiple goroutines.
|
||||
type Publisher struct {
|
||||
m sync.RWMutex
|
||||
buffer int
|
||||
|
||||
Reference in New Issue
Block a user