We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f4cabb commit 20986b6Copy full SHA for 20986b6
Package.swift
@@ -5,6 +5,7 @@ import PackageDescription
5
6
let package = Package(
7
name: "PostgREST",
8
+ platforms: [.iOS(.v11), .macOS(.v10_10)],
9
products: [
10
// Products define the executables and libraries a package produces, and make them visible to other packages.
11
.library(
Sources/PostgREST/Concurrency.swift
@@ -0,0 +1,14 @@
1
+import Foundation
2
+
3
+#if compiler(>=5.5)
4
+@available(iOS 15.0.0, macOS 12.0.0, *)
+extension PostgrestBuilder {
+ public func execute(head: Bool = false, count: CountOption? = nil) async throws -> PostgrestResponse {
+ try await withCheckedThrowingContinuation { continuation in
+ self.execute(head: head, count: count) { result in
+ continuation.resume(with: result)
+ }
12
13
+}
14
+#endif
0 commit comments