---
title: AsyncFlatMapSequence
framework: swift
role: symbol
role_heading: Structure
path: swift/asyncflatmapsequence
---

# AsyncFlatMapSequence

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

## Declaration

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

## Topics

### Structures

- [AsyncFlatMapSequence.Iterator](swift/asyncflatmapsequence/iterator.md)

### Type Aliases

- [AsyncFlatMapSequence.Failure](swift/asyncflatmapsequence/failure.md)

### Default Implementations

- [AsyncSequence Implementations](swift/asyncflatmapsequence/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)
- [AsyncThrowingFlatMapSequence](swift/asyncthrowingflatmapsequence.md)
- [reduce(_:_:)](swift/asyncsequence/reduce(_:_:).md)
- [reduce(into:_:)](swift/asyncsequence/reduce(into:_:).md)
