diff --git a/components/engine/pkg/pubsub/publisher.go b/components/engine/pkg/pubsub/publisher.go index 534b74ad4d..6f3d5924db 100644 --- a/components/engine/pkg/pubsub/publisher.go +++ b/components/engine/pkg/pubsub/publisher.go @@ -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