//
pkg.gl
Category
github.com/MintegralTech/mtggokit
parallel
package
0.2.9
Repository:
https://github.com/mintegraltech/mtggokit.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
0
Files
56 SLOC
#
Functions
ConcurrentRun
ConcurrentRun run your function concurrently ConcurrentRun give up when ctx.Done() if ctx != nil timeout set timeout for run given task return done or timeout flags according to given tasks.
#
Structs
Task
Task run by ConcurrentRun ConcurrentRun will return immediately after all unignorable tasks done CancelFun will be invoked when this task overtime.