mailbox

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailbox

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

func New

func New() *Mailbox

New creates a new Mailbox and returns the pointer to it.

func (*Mailbox) In

func (mb *Mailbox) In() chan<- interface{}

In returns the input channel of a mailbox.

func (*Mailbox) Len

func (mb *Mailbox) Len() int

Len returns the length of the mailbox buffer.

func (*Mailbox) Out

func (mb *Mailbox) Out() <-chan interface{}

Out returns the output channel of a mailbox.

Jump to

Keyboard shortcuts

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