Closed rmrewak closed 8 years ago
Say you have an external API method with a opts, done?
signature. That method internally calls many other functions, some of which are asynchronous as well. If you set done = done || Function()
or some such at the entry point, you won't have to check whether a callback is being passed in the internal functions.
@bevacqua Thanks for the amazing work done.
why not use
if-else
and do not call setTimeout at all ?