package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Oct 23, 2018
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Pool struct {
Tasks []*Task
}
Pool is the base model for tasks work group
NewPool creates a worker pool given tasks and concurrency
Run runs all work within the pool and blocks until it's
finished.
type Task struct {
Error error
}
Task is the generic task model
NewTask initializes a new task based on a given work function.
Run runs a task and marks wait group as done
Source Files
¶
Click to show internal directories.
Click to hide internal directories.