Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PassThoughClone ¶
Types ¶
type ChannelStream ¶
type ChannelStream[T any] struct { // contains filtered or unexported fields }
func NewChannelStream ¶
func NewChannelStream[T any](channel chan T, cleanup func()) *ChannelStream[T]
func (ChannelStream[T]) Channel ¶
func (c ChannelStream[T]) Channel() (stream <-chan T)
func (ChannelStream[T]) Next ¶
func (c ChannelStream[T]) Next(ctx context.Context) (message T, hasNext bool, err error)
func (ChannelStream[T]) Unsubscribe ¶
func (c ChannelStream[T]) Unsubscribe()
type MessageCloneFunc ¶
Click to show internal directories.
Click to hide internal directories.