bezzad / Downloader

Fast, cross-platform and reliable multipart downloader with asynchronous progress events for .NET applications.
MIT License
1.25k stars 193 forks source link

Fix naming issue and implement IAsyncDisposable #163

Open Poker-sang opened 1 week ago

Poker-sang commented 1 week ago

Dowloader's api design is handy and makes sense! But there are some methods with a Task return value, named without using the Async suffix, which confuses me when I use them. The Async suffix is also used in some void methods, such as DowloadService.CancelAsync.

Also I would like DowloadService to use DisposeAsync instead of Clear so that the await using syntax can be used.

Thank you!