---
title: AsyncThrowingFlatMapSequence.Failure
framework: swift
role: symbol
role_heading: Type Alias
path: swift/asyncthrowingflatmapsequence/failure
---

# AsyncThrowingFlatMapSequence.Failure

The type of error produced by this asynchronous sequence.

## Declaration

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

## Discussion

Discussion The flat map sequence produces errors from either the base sequence or the transform closure.
