Dad, self-employed, problem solver at heart, async all the way. Formerly a principal software engineer at Nuance Communications. Occasionally I tweet, blog and answer my own StackOverflow questions.
It never occurred to me I could use a thenable with Promise.resolve and Promise.race etc. Today I've learnt something new, thanks to you! It really does work:
It never occurred to me I could use a
thenable
withPromise.resolve
andPromise.race
etc. Today I've learnt something new, thanks to you! It really does work:I could recommend this read on V8.dev: Faster async functions and promises.