---
title: "downloadResources(timeout:subprogress:)"
framework: Cinematic
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+]
path: "cinematic/cnassetinfo-2ata2/downloadresources(timeout:subprogress:)"
---

# downloadResources(timeout:subprogress:)

Downloads the resources required to render cinematic effects for the given asset Resources are device-wide and are cached once downloaded

## Declaration

```swift
@discardableResult func downloadResources(timeout: TimeInterval = defaultResourceDownloadTimeout, subprogress: consuming Subprogress? = nil) async throws -> CNAssetInfo
```

## Parameters

- `subprogress`: Monitors the download progress

## Discussion

Discussion Cancellation: this method responds to Swift Task cancellation. If the calling task is cancelled, the download stops; any partially downloaded resources are discarded.
