mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
Running The SaveTo async #359
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 @Reddevildragg on GitHub (Jun 27, 2019).
May be missing something, but is there a way to run the saveto through async? application hangs for several seconds during the save to process and would be great to have an option to have this run in the background and be awaited.
EDIT: looks like it i go to the background thread before calling the function it works fine, but be nice improvement if there was a SendToAsync function or somthing that did that part for you. Just a suggestion
@adamhathcock commented on GitHub (Aug 20, 2019):
Threading is an exercise left to the user of this library. It might be prudent to have some Async methods to use the underlying Async methods on Stream classes, however, the actual compression/decompression has to happen on a thread somewhere. That's beyond the scope of this library.