package pubsub

import "github.com/docker/docker/pkg/pubsub"

Index

Variables

var NewPublisher = pubsub.NewPublisher

NewPublisher creates a new pub/sub publisher to broadcast messages. The duration is used as the send timeout as to not block the publisher publishing messages to other clients if one client is slow or unresponsive. The buffer is used when creating new channels for subscribers.

Deprecated: use github.com/moby/pubsub.NewPublisher

Types

type Publisher

type Publisher = pubsub.Publisher

Publisher is basic pub/sub structure. Allows to send events and subscribe to them. Can be safely used from multiple goroutines.

Deprecated: use github.com/moby/pubsub.Publisher

Source Files

publisher.go

Version
v23.0.1+incompatible
Published
Feb 9, 2023
Platform
linux/amd64
Imports
1 packages
Last checked
39 minutes ago

Tools for package owners.