Relative Content

Tag Archive for c#asynchronousasync-awaittask

C# Task.Run only runs synchronously?

I’m trying to write a method that reads each page of a pdf, but since it takes a significant amount of time to read each page through the api and I’m looking at pdfs hundreds of pages long, I want to queue the reading of each page asynchronously and then return the results when they’re ready, so multiple pages are being read at once.