---
title: "fetchCurrentDownloads(completionHandler:)"
framework: backgroundassets
role: symbol
role_heading: Instance Method
path: "backgroundassets/badownloadmanager/fetchcurrentdownloads(completionhandler:)"
---

# fetchCurrentDownloads(completionHandler:)

Fetches the contents of the manager’s download queue.

## Declaration

```swift
func fetchCurrentDownloads(completionHandler: @escaping @Sendable ([BADownload], (any Error)?) -> Void)
```

```swift
var currentDownloads: [BADownload] { get async throws }
```

## Parameters

- `completionHandler`: The handler that processes the fetch results, which the system executes on an arbitrary queue.

## Discussion

Discussion The completion handler takes the following parameters: An array of scheduled and in-progress downloads. An error if a problems occurs, or nil if the method successfully fetches the current downloads.

## See Also

### Fetching in-progress downloads

- [fetchCurrentDownloads()](backgroundassets/badownloadmanager/fetchcurrentdownloads().md)
