---
title: AsyncThrowingFlatMapSequence
framework: swift
role: symbol
role_heading: Structure
path: swift/asyncthrowingflatmapsequence
---

# AsyncThrowingFlatMapSequence

An asynchronous sequence that concatenates the results of calling a given error-throwing transformation with each element of this sequence.

## Declaration

```swift
struct AsyncThrowingFlatMapSequence<Base, SegmentOfResult> where Base : AsyncSequence, SegmentOfResult : AsyncSequence
```

## Topics

### Structures

- [AsyncThrowingFlatMapSequence.Iterator](swift/asyncthrowingflatmapsequence/iterator.md)

### Type Aliases

- [AsyncThrowingFlatMapSequence.Failure](swift/asyncthrowingflatmapsequence/failure.md)

### Default Implementations

- [AsyncSequence Implementations](swift/asyncthrowingflatmapsequence/asyncsequence-implementations.md)

## Relationships

### Conforms To

- [AsyncSequence](swift/asyncsequence.md)
- [Copyable](swift/copyable.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Transforming a Sequence

- [map(_:)](swift/asyncsequence/map(_:)-1q1k3.md)
- [AsyncMapSequence](swift/asyncmapsequence.md)
- [map(_:)](swift/asyncsequence/map(_:)-70wgb.md)
- [AsyncThrowingMapSequence](swift/asyncthrowingmapsequence.md)
- [compactMap(_:)](swift/asyncsequence/compactmap(_:)-gfdq.md)
- [AsyncCompactMapSequence](swift/asynccompactmapsequence.md)
- [compactMap(_:)](swift/asyncsequence/compactmap(_:)-1f8zn.md)
- [AsyncThrowingCompactMapSequence](swift/asyncthrowingcompactmapsequence.md)
- [AsyncFlatMapSequence](swift/asyncflatmapsequence.md)
- [reduce(_:_:)](swift/asyncsequence/reduce(_:_:).md)
- [reduce(into:_:)](swift/asyncsequence/reduce(into:_:).md)
