mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
Make async function real #740
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zhuxb711 on GitHub (Dec 8, 2025).
Currently, all the async function seems will call the "Sync" one and simply return a Task.CompleteTask.
However, this is not the real async function and will block the caller thread until the operation complete. Therefore, it's no difference than the sync one. Make sure that you implement the async function separately. For example: use underlying stream async function:
Stream.WriteAsync()Stream.ReadAsync()Stream.FlushAsync()2a3086a0d7/src/SharpCompress/Writers/AbstractWriter.cs (L27-L38)@adamhathcock commented on GitHub (Dec 8, 2025):
I'm definitely working on it. That's for keeping tabs on what's real though. Sometimes I get lost.