Already shared this with @joshw on Slack (we work together) but for visibility I thought I'd point out that swift-nio has a nice AnyAsyncSequence type that can do the trick. Though folks have pointed out in the past that this can have sizable perf tradeoffs so probably best used sparingly.