DownloadStatus

enum DownloadStatus<T>

Type used to allow progress reporting in download methods using Swift’s async-await concurrency system.

Summary

Enumeration Cases
downloading Download in progress.
finished The download finished. Stores the download result as T.

Enumeration Cases

downloading

case downloading(bytesCurrent: Float, bytesTotal: Float)

Download in progress.

finished

case finished(T)

The download finished. Stores the download result as T.


If something needs to be added or if you find an error in our documentation, please let us know either on our GitHub or Discord.

Last updated on August 8, 2022