kissngoqueue

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 1 Imported by: 3

README

Go idiomatic synchronization queue based on 'Rethinking Classical Concurrency Patterns'

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue[T any] struct {
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue[T any]() *Queue[T]

func (*Queue[T]) Cancel

func (q *Queue[T]) Cancel()

func (*Queue[T]) CancelMT added in v0.1.5

func (q *Queue[T]) CancelMT()

func (*Queue[T]) Get

func (q *Queue[T]) Get() (item T, status bool)

func (*Queue[T]) Put

func (q *Queue[T]) Put(item T) (status bool)

func (*Queue[T]) PutMT added in v0.1.5

func (q *Queue[T]) PutMT(item T) (status bool)

Jump to

Keyboard shortcuts

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