taskqueue

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger func(v ...any)

type Option

type Option func(*Queue)

func Depth

func Depth(depth int) Option

func Workers

func Workers(workers int) Option

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) *Queue

func (*Queue) Shutdown

func (q *Queue) Shutdown()

func (*Queue) Submit

func (q *Queue) Submit(task Task)

type Task

type Task func()

Jump to

Keyboard shortcuts

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