tj / co-parallel

Execute thunks in parallel with concurrency support
109 stars 9 forks source link

concurrency a little confuse #11

Closed stableShip closed 7 years ago

stableShip commented 8 years ago

I want to use co-parallel in my project to limit the http request to a third-party server. just like example,limie concurrency 2: var res = yield parallel(reqs, 2); Is it finished two request and then start another two request? till all request finshed?

LeoYuan commented 7 years ago

Nope, a new request will be made as soon as any of those two requests(jobs) finished, for more details, checkout the source code.