channel

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 2 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 interface {
	Send(val interface{}) bool
	Receive() (interface{}, bool)
	Close()
}

type ChannelImpl

type ChannelImpl struct {
	// contains filtered or unexported fields
}

func NewChannel

func NewChannel(size uint32) *ChannelImpl

func (*ChannelImpl) Close

func (a *ChannelImpl) Close()

func (*ChannelImpl) Receive

func (a *ChannelImpl) Receive() (interface{}, bool)

func (*ChannelImpl) Send

func (a *ChannelImpl) Send(val interface{}) bool

type OutgoingChannel

type OutgoingChannel interface {
	Send(val interface{}) bool
	Close()
}

Jump to

Keyboard shortcuts

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