core

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blocking

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

func NewBlocking

func NewBlocking[T any](params *param.Queue) (blocking *Blocking[T])

func (*Blocking[T]) Dequeue

func (b *Blocking[T]) Dequeue() (item T)

func (*Blocking[T]) Empty

func (b *Blocking[T]) Empty() bool

func (*Blocking[T]) Enqueue

func (b *Blocking[T]) Enqueue(required T, optionals ...T)

func (*Blocking[T]) Size

func (b *Blocking[T]) Size() int

type Default

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

func NewDefault

func NewDefault[T any](params *param.Queue) *Default[T]

func (*Default[T]) Dequeue

func (d *Default[T]) Dequeue() (item T)

func (*Default[T]) Empty

func (d *Default[T]) Empty() bool

func (*Default[T]) Enqueue

func (d *Default[T]) Enqueue(required T, optionals ...T)

func (*Default[T]) Size

func (d *Default[T]) Size() int

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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