listing7_14

package
v0.0.0-...-b3d5bcf Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel[M any] struct {
	// contains filtered or unexported fields
}

func NewChannel

func NewChannel[M any](capacity int) *Channel[M]

func (*Channel[M]) Receive

func (c *Channel[M]) Receive() M

func (*Channel[M]) Send

func (c *Channel[M]) Send(message M)

Jump to

Keyboard shortcuts

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