Versions in this module Expand all Collapse all v0 v0.0.1 Jun 24, 2021 Changes in this version + const DefaultLimit + func Resize(width, height int, img *image.RGBA) *image.RGBA + func Save(buf *image.RGBA, dst string) error + func ScaleDown2x(width, height float64, buf []color.RGBA) []color.RGBA + func Timed(name string) func() + type Limiter struct + func NewLimiter(limit int) *Limiter + func (c *Limiter) Execute(job func()) + func (c *Limiter) Wait() + type WorkerPool struct + func NewWorkerPool(limit uint64) *WorkerPool + func (p *WorkerPool) Add(numTasks uint64) uint64 + func (p *WorkerPool) Done() + func (p *WorkerPool) Execute(f func()) + func (p *WorkerPool) Running() uint64 + func (p *WorkerPool) Wait()