package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Jun 1, 2022
License: GPL-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 15
Opens a new window with list of known importers.
Documentation
¶
func NewTask(f func() error) *task
type Pool interface {
AddTask(t Task)
AddTasks(t []Task)
Start()
Stop()
}
type PoolConfig struct {
NumWorker int
QueueSize int
}
PoolConfig Configuration for a worker pool.
type Task interface {
WaitForResult() error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.