Documentation ¶
Overview ¶
Package worker manages a set of registered jobs that execute on demand.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker manages jobs and the execution of those jobs concurrently.
func New ¶
New constructs a Worker for managing and executing jobs. The capacity value represents the maximum number of G's that can be executing at any given time.
Click to show internal directories.
Click to hide internal directories.