sliceQueue

package
v0.1.73 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SliceQueue

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

func NewSliceQueue

func NewSliceQueue[T any](capacity int) *SliceQueue[T]

func (*SliceQueue[T]) Clear

func (s *SliceQueue[T]) Clear() error

func (*SliceQueue[T]) IsEmpty

func (s *SliceQueue[T]) IsEmpty() bool

func (*SliceQueue[T]) IsFull

func (s *SliceQueue[T]) IsFull() bool

func (*SliceQueue[T]) Pop

func (s *SliceQueue[T]) Pop(ctx context.Context) (T, error)

func (*SliceQueue[T]) Push

func (s *SliceQueue[T]) Push(ctx context.Context, el T) error

func (*SliceQueue[T]) Size

func (s *SliceQueue[T]) Size() int

Jump to

Keyboard shortcuts

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