workers

package
v0.0.58 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTask

func AddTask(task func())

func RestartWorkers

func RestartWorkers()

RestartWorkers stops the current worker loop and starts it again.

func RunWorkers

func RunWorkers()

RunWorkers starts a managed worker loop for the given task if one is not already running. Each started task still respects the configured worker pool limit.

func SetWorkersLimit

func SetWorkersLimit(limit int)

SetWorkersLimit sets the maximum number of concurrent workers for future runs. Non-positive limits fall back to the default worker limit.

func StopWorkers

func StopWorkers()

StopWorkers stops the currently running worker loop, if any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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