mych

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandleFunc

type HandleFunc[DATA any] func(data DATA) bool

type Product

type Product[DATA any] interface {
	Producter() chan<- DATA
	Consumer() <-chan DATA
	Send(data DATA)
	SendBy(valid ValidFunc[DATA], data DATA)
	Receive() DATA
	ReceiveBy(handler HandleFunc[DATA])
}

func NewProduct

func NewProduct[DATA any](chLen uint) Product[DATA]

type ValidFunc

type ValidFunc[DATA any] func(data DATA) bool

Jump to

Keyboard shortcuts

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