queue

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(queue <-chan byte, number int) ([]byte, error)

Get removes an exact number of items from the channel and blocks until that number of items are available. If the channel is closed then an error is returned.

func Put

func Put(queue chan<- byte, items []byte)

Put adds a slice of bytes to a channel queue. If the channel isn't buffered this will block.

Types

This section is empty.

Jump to

Keyboard shortcuts

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