dave08
10/21/2018, 3:41 PMval downloadedFile = downloadPath.resolve(url.path)
var currBytes: Long = 0L
downloadedFile.writeChannel().use {
val content = client.get<HttpResponse>(url).content
while (currBytes < totalSize) {
currBytes += content.copyTo(this, bufferSize)
progress.send(DownloadProgress(currBytes, totalSize))
}
}
@e5l?