Progress Event
Reports the data transfer progress.
Syntax
func onProgress(total: Int64, current: Int64, cancel: inout Bool)
Remarks
This event fires periodically during a file transfer operation to report its progress.
Use the Cancel parameter to terminate the transfer if needed.