package
Version:
v7.0.4
Opens a new window with list of versions in this module.
Published: Jan 30, 2023
License: Apache-2.0, Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Pool is the worker pool.
NewPool creates a new worker pool.
Apply gets a worker from the pool.
HasWorker returns whether the pool has worker.
Recycle puts a worker back to the pool.
type Worker struct {
ID int64
}
Worker is the worker struct.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.