---
title: AsyncThrowingCompactMapSequence.Failure
framework: swift
role: symbol
role_heading: Type Alias
path: swift/asyncthrowingcompactmapsequence/failure
---

# AsyncThrowingCompactMapSequence.Failure

The type of element produced by this asynchronous sequence.

## Declaration

```swift
typealias Failure = any Error
```

## Discussion

Discussion The compact map sequence produces errors from either the base sequence or the transforming closure.
