Versions in this module Expand all Collapse all v0 v0.3.2 Oct 4, 2014 Changes in this version + var ErrTerminating = errors.New("pool terminating") + type Task func() + type ThreadPool struct + func NewThreadPool(cap int) *ThreadPool + func (t *ThreadPool) Clear() + func (t *ThreadPool) Schedule(task Task) error + func (t *ThreadPool) Start() + func (t *ThreadPool) Terminate(clear bool)