Peter Toft Jølving

Results 3 comments of Peter Toft Jølving

I'm unsure whether `await Task.WhenAll(dequeuedTasks.Select(InvokeTask).ToArray());` (which you're currently doing) would lead to them being processed on different threads by the thread pool. I suspect it does, which means you're already...

> `WhenAll `would process the asynchronous I/O in concurrently, but any CPU bound work will "stall" the other Tasks from continuing their own CPU bound work. It depends on how...

Return the interface `IActionResult` instead. The hierarchy is `ViewAsPdf` : `AsPdfResultBase` : `AsResultBase` : `ViewResult` : `IActionResult`.