You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PdfReader.Open vs PdfReader.OpenAsync PdfDocument.Save vs PdfDocument.SaveAsync
Why is it important?
Look at implementation of PdfDocument OpenFromStream it calls stream.Read(array, 0, 1024); which is blocking.
Blocking on IO can lead to threadpool starvation.
The text was updated successfully, but these errors were encountered:
@ThomasHoevel Unfortunately it looks like PdfDocument.SaveAsync() is only available in the prerelease version, not in the latest stable. Before that, the method is only defined for UWP builds.
Reporting an Issue Here
Expected Behavior
PDFSharp supports async API
Actual Behavior
PDFSharp does not support async API
Example
PdfReader.Open
vsPdfReader.OpenAsync
PdfDocument.Save
vsPdfDocument.SaveAsync
Why is it important?
Look at implementation of
PdfDocument OpenFromStream
it callsstream.Read(array, 0, 1024);
which is blocking.Blocking on IO can lead to threadpool starvation.
The text was updated successfully, but these errors were encountered: