chmux

package module
v0.0.0-...-912edf7 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

chmux

Simple in process multiplexer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mux

type Mux[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](ctx context.Context) *Mux[T]

func (*Mux[T]) Close

func (m *Mux[T]) Close()

func (*Mux[T]) CloseAllSinks

func (m *Mux[T]) CloseAllSinks()

func (*Mux[T]) CloseSink

func (m *Mux[T]) CloseSink(chs ...chan T)

func (*Mux[T]) NewSink

func (m *Mux[T]) NewSink() chan T

func (*Mux[T]) Send

func (m *Mux[T]) Send(t T)

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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