项目作者: BoRuDar

项目描述 :
Hides complexity of concurrent executions.
高级语言: Go
项目地址: git://github.com/BoRuDar/asynchronizer.git
创建时间: 2019-07-20T12:36:35Z
项目社区:https://github.com/BoRuDar/asynchronizer

开源协议:MIT License

下载


asynchronizer

Run functions asynchronously, hides all magic.
100% coverage.

Usage

Your functions should have next signature:

  1. func job(ctx context.Context) (Result, error)

Than just put your functions and context.Context inside ExecuteAsync():

  1. results, err := ExecuteAsync(ctx, job1, job2)