Multi Threaded Generation
JavaScript and Node.js both support asynchronous processing. So does IronPDF.
Most of IronPDF's methods return promises. Leveraging this, we can render multiple HTML contents, and then use the Promise.all
method to wait until all the promises have finished.
Please note that the Promise.all
method does not guarantee the success of all promises; it only ensures that the promises have finished.
The await
within the .map function is used to wait for the returned PDF documents and perform further edits on the documents. If your goal is solely to render the PDFs without additional processing, the use of async
and await may not be necessary.