uint64Chan

package
v0.0.0-...-e35a26a Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectRecv

func SelectRecv(block bool, chans ...Receiver) (uint64, bool)

func SelectSend

func SelectSend(block bool, v uint64, chans ...Sender) bool

Types

type Chan

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

func New

func New() Chan

func NewSize

func NewSize(sz int) Chan

func (Chan) Cap

func (ch Chan) Cap() int

func (Chan) Close

func (ch Chan) Close()

func (Chan) Closed

func (ch Chan) Closed() bool

func (Chan) Len

func (ch Chan) Len() int

func (Chan) Recv

func (ch Chan) Recv(block bool) (uint64, bool)

func (Chan) RecvOnly

func (ch Chan) RecvOnly() RecvOnly

func (Chan) Send

func (ch Chan) Send(v uint64, block bool) bool

func (Chan) SendOnly

func (ch Chan) SendOnly() SendOnly

type Receiver

type Receiver interface {
	Recv(block bool) (uint64, bool)
}

type RecvOnly

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

func (RecvOnly) Recv

func (ro RecvOnly) Recv(block bool) (uint64, bool)

type SendOnly

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

func (SendOnly) Send

func (so SendOnly) Send(v uint64, block bool) bool

type Sender

type Sender interface {
	Send(v uint64, block bool) bool
}

Jump to

Keyboard shortcuts

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