2021年1月26日星期二

Use promise-returning code without async/await

I'm trying to quickly write a simple tool in NodeJS using pdf-lib. pdf-lib appears to be designed to use promises and async/await, but I don't want the extra code complexity of async/await for such a simple tool.

How can I use functions that return a promise without the extra bother of async/await?

https://stackoverflow.com/questions/65913086/use-promise-returning-code-without-async-await January 27, 2021 at 12:57PM

没有评论:

发表评论