unboundedChan

package
v0.0.0-...-abe8aed Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChanItem

type ChanItem[T any] struct {
	Value    T
	Priority int
}

type UnboundedChan

type UnboundedChan[T any] struct {
	In  chan<- ChanItem[T]
	Out <-chan T
	// contains filtered or unexported fields
}

func NewUnboundedChan

func NewUnboundedChan[T any]() *UnboundedChan[T]

func (*UnboundedChan[T]) Len

func (p *UnboundedChan[T]) Len() int

Jump to

Keyboard shortcuts

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