diff --git a/index.js b/index.js index 357df2d..e30cd95 100644 --- a/index.js +++ b/index.js @@ -35,7 +35,7 @@ function runThread(generator, onsuccess, onerror) thread._finishThrottleQueue = finishThrottleQueue.bind(thread); thread._onsuccess = onsuccess; thread._onerror = onerror; - thread(); + callGen(thread, 'next', []); return thread; }