Closed vikramdurai closed 6 years ago
What's the difference between calling Promise.resolve(func()) and Promise.promisify(func)?
Promise.resolve(func())
Promise.promisify(func)
Promise.resolve(func()) converts the result of func into a promise and Promise.promisify(func) returns a function that, when called, will return promises
func
What's the difference between calling
Promise.resolve(func())
andPromise.promisify(func)
?