channel

package
v0.9.290 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broadcaster

func Broadcaster[T any](in <-chan T) func() <-chan T

Broadcaster returns a function that when called, yields a new channel that receives all values ever sent on the input channel 'in'. New channels receive the full history on subscription, and receivers added after closure see the full buffer and an immediate close. All channel access/updates are internally synchronized.

func UnaryLifetime added in v0.9.288

func UnaryLifetime[T any](lifetime <-chan T) grpc.UnaryServerInterceptor

UnaryLifetime creates a gRPC interceptor that cancels the context when the lifetime expires. Useful for propagating server shutdown to long-running gRPC calls.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL