worker

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.0.7

func New(ctx context.Context, opts PoolOptions) *pool

Types

type PoolOptions

type PoolOptions struct {
	Workers int
}

type Pusher

type Pusher interface {
	Push(task Task)
}

type Task

type Task func(ctx context.Context) error

type Waiter

type Waiter interface {
	Wait() error
}

Jump to

Keyboard shortcuts

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