Skip to content

Commit be0d294

Browse files
committed
Mark NIO helper function as internal to support compatibility with other packages
1 parent b10a33d commit be0d294

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/GraphQL/Utilities/NIO+Extensions.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import NIO
1111
public typealias Future = EventLoopFuture
1212

1313
extension Collection {
14-
public func flatten<T>(on eventLoopGroup: EventLoopGroup) -> Future<[T]> where Element == Future<T> {
14+
internal func flatten<T>(on eventLoopGroup: EventLoopGroup) -> Future<[T]> where Element == Future<T> {
1515
return Future.whenAll(Array(self), eventLoop: eventLoopGroup.next())
1616
}
1717
}
1818

1919
extension Collection {
20-
public func flatMap<S, T>(
20+
internal func flatMap<S, T>(
2121
to type: T.Type,
2222
on eventLoopGroup: EventLoopGroup,
2323
_ callback: @escaping ([S]) throws -> Future<T>
@@ -55,7 +55,7 @@ extension Dictionary where Value : FutureType {
5555
}
5656
}
5757
extension Future {
58-
public func flatMap<T>(
58+
internal func flatMap<T>(
5959
to type: T.Type = T.self,
6060
_ callback: @escaping (Expectation) throws -> Future<T>
6161
) -> Future<T> {

0 commit comments

Comments
 (0)