项目作者: BoRuDar
项目描述 :
Hides complexity of concurrent executions.
高级语言: Go
项目地址: git://github.com/BoRuDar/asynchronizer.git
asynchronizer
Run functions asynchronously, hides all magic.
100% coverage.
Usage
Your functions should have next signature:
func job(ctx context.Context) (Result, error)
Than just put your functions and context.Context
inside ExecuteAsync()
:
results, err := ExecuteAsync(ctx, job1, job2)