tj / co-parallel

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

refactor for #1 #2

Closed yorkie closed 10 years ago

tj commented 10 years ago

oh wait no, that's a busy wait. reverting

yorkie commented 10 years ago

hi, @visionmedia Do you mean that while(queue.length) would block the main thread? Could you give a test code for it? I have tested my code in my machine, even passed.

tj commented 10 years ago

it'll work but it's sub-optimal, we're probably best just using the "batch" module

yorkie commented 10 years ago

Ok, I see. thanks for your reply. :)