Versions in this module Expand all Collapse all v0 v0.0.1 Jul 14, 2023 Changes in this version + type ExecuteContext struct + func (ctx *ExecuteContext[TARGET, RESULT]) Cancel() + func (ctx *ExecuteContext[TARGET, RESULT]) SetValue(key string, value any) + func (ctx *ExecuteContext[TARGET, RESULT]) Target() TARGET + type Parallel struct + func NewParallel[TARGET any, RESULT any](executeHandler func(ctx *ExecuteContext[TARGET, RESULT]) (*RESULT, error), ...) *Parallel[TARGET, RESULT] + func (p *Parallel[TARGET, RESULT]) Cancel() + func (p *Parallel[TARGET, RESULT]) Execute(target TARGET) + func (p *Parallel[TARGET, RESULT]) IsExecuting() bool + func (p *Parallel[TARGET, RESULT]) ReadyExecute() + func (p *Parallel[TARGET, RESULT]) SetMaxExecuteNum(num int) + func (p *Parallel[TARGET, RESULT]) Wait() + type Result struct + Err error + Value RESULT + type ResultContext struct + func (ctx *ResultContext[TARGET, RESULT]) Cancel() + func (ctx *ResultContext[TARGET, RESULT]) Error() error + func (ctx *ResultContext[TARGET, RESULT]) Result() RESULT + func (ctx *ResultContext[TARGET, RESULT]) Target() TARGET + func (ctx *ResultContext[TARGET, RESULT]) Value(key string) any