monoprocess

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMonoprocessBackend

func NewMonoprocessBackend(b backend.Backend) *monoprocessBackend

NewMonoprocessBackend wraps an existing backend and improves its responsiveness in case the backend and worker are running in the same process. This backend uses channels to notify the worker every time there is a new task ready to be worked on. Note that only one worker will be notified. IMPORTANT: Only use this backend when the backend and worker are running in the same process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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