-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Zach FettersMoore <4425109+BobaFetters@users.noreply.github.com> Co-authored-by: Zach FettersMoore <zach.fetters@apollographql.com> Co-authored-by: SecOps[bot] <136828330+svc-secops@users.noreply.github.com> Co-authored-by: renovate[bot] <svc-secops+renovate@apollographql.com> Co-authored-by: runner <runner@Mac-1696447481311.local> Co-authored-by: Jim Isaacs <299156+jimisaacs@users.noreply.github.com>
- Loading branch information
1 parent
c2145a5
commit f08c0b5
Showing
112 changed files
with
5,098 additions
and
3,846 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import Foundation | ||
|
||
extension Sequence { | ||
public func asyncMap<T>( | ||
_ transform: (Element) async throws -> T | ||
) async rethrows -> [T] { | ||
var values = [T]() | ||
|
||
for element in self { | ||
try await values.append(transform(element)) | ||
} | ||
|
||
return values | ||
} | ||
|
||
public func asyncForEach( | ||
_ body: (Element) async throws -> Void | ||
) async rethrows { | ||
for element in self { | ||
try await body(element) | ||
} | ||
} | ||
} |
68 changes: 0 additions & 68 deletions
68
Tests/ApolloCodegenInternalTestHelpers/CodegenTestHelper.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.