[android-components](../../index.md) / [mozilla.components.feature.downloads](../index.md) / [DownloadStorage](index.md) / [update](./update.md)

# update

`suspend fun update(download: `[`DownloadState`](../../mozilla.components.browser.state.state.content/-download-state/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/downloads/src/main/java/mozilla/components/feature/downloads/DownloadStorage.kt#L61)

Update the given [download](update.md#mozilla.components.feature.downloads.DownloadStorage$update(mozilla.components.browser.state.state.content.DownloadState)/download).

