Discover Packages
github.com/kobsio/kobs
pkg
hub
watcher
worker
package
Version:
v0.10.0
Opens a new window with list of versions in this module.
Published: Sep 2, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Pool interface {
RunTask(task Task )
Stop() error
}
Pool is the interface which must be implemented by our worker pool.
NewPool returns a new worker pool with the given number of goroutines. The returned pool can then be used to add task
which are then processed by the worker pool.
type Task interface {
Do()
}
Task is the interface which must be implemented by each task which should be added to the worker pool.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.