al6x / synchronize

Write asynchronous code as if it's synchronous
http://alexeypetrushin.github.com/synchronize
316 stars 57 forks source link

sync.deferWithTimeout should check if there is a fiber first. #26

Closed andrewtamura closed 9 years ago

andrewtamura commented 9 years ago

sync.deferWithTimeout should do the same fiber check that sync.defer does. Currently the code throws a TypeError: Cannot read property '_syncParallel' of undefined if you aren't inside of a Fiber.

al6x commented 9 years ago

Thanks! :)