Currently, `Future.flatMap` is implemented like this: https://github.com/vapor/core/blob/fda3ebda8046af7c9a886fa4a5cfd886111ac23e/Sources/Async/Future%2BMap.swift#L45 Would it be possible to call through to SwiftNIO's implementation of `Future.then` instead? https://github.com/apple/swift-nio/blob/6f3671de4ed1350b86762e0da317075f69983f7d/Sources/NIO/EventLoopFuture.swift#L437 Let me know if I'm missing something.
Currently,
Future.flatMapis implemented like this:core/Sources/Async/Future+Map.swift
Line 45 in fda3ebd
Would it be possible to call through to SwiftNIO's implementation of
Future.theninstead?https://github.com/apple/swift-nio/blob/6f3671de4ed1350b86762e0da317075f69983f7d/Sources/NIO/EventLoopFuture.swift#L437
Let me know if I'm missing something.