downloadToFile

private suspend fun downloadToFile(url: String, destination: File, onProgress: suspend (Int) -> Unit): File(source)

Executes the downloadToFile step in the SDAI data layer.

Return

Result produced by downloadToFile.

Author

Dmitriy Moroz

Parameters

url

remote URL used by the operation.

destination

destination value consumed by the API.

onProgress

callback invoked by the component.

Throws

when the delegated operation cannot complete.