queue

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 0 Imported by: 0

README

queue

A single ended queue with push and pop functionality implemented with channels for built in thread safety.

Because this queue is type specific, it should probably not be imported, and instead simply implemented in a project that uses this. Copy the implementation and retype as needed. For this reason, the struct is implemented as private.

There are optional add-ons for this implementation such as a queue counter to prevent the queue from being cycled through excessively. An example implementation is included in run.go.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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