cujojs / when

A solid, fast Promises/A+ and when() implementation, plus other async goodies.
Other
3.44k stars 396 forks source link

when/poll has no (default) timeout #478

Closed jklmli closed 8 years ago

jklmli commented 8 years ago

Adding a reasonable default timeout, and a timeout argument would make this even more useful!

jklmli commented 8 years ago

promise.timeout handles this.

briancavalier commented 8 years ago

Hey @jiaweihli! Yep, your polling function can return promises with a timeout. Cheers!