controller-runtimesigs.k8s.io/controller-runtime/pkg/internal/syncs Index | Files

package syncs

import "sigs.k8s.io/controller-runtime/pkg/internal/syncs"

Index

Functions

func MergeChans

func MergeChans[T any](chans ...<-chan T) (<-chan T, context.CancelFunc)

MergeChans returns a channel that is closed when any of the input channels are signaled. The caller must call the returned CancelFunc to ensure no resources are leaked.

Source Files

syncs.go

Version
v0.20.4 (latest)
Published
Mar 24, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
2 days ago

Tools for package owners.