asyncImpl

package
v0.0.0-...-98a7bba Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() app.Asynchronous

Types

type Handler

type Handler struct {
	Queues map[app.Queue]app.WorkerPool
}

func (Handler) AddJob

func (async Handler) AddJob(ctx app.Context, queue app.Queue, job app.Job) error

type WorkerGroup

type WorkerGroup struct {
	NumWorkers int
	JobChan    chan func()
}

func (WorkerGroup) AddJob

func (pool WorkerGroup) AddJob(baseCtx app.Context, job app.Job) error

func (WorkerGroup) Start

func (pool WorkerGroup) Start()

Jump to

Keyboard shortcuts

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