Skip to content

Commit 30b8e2d

Browse files
authored
Merge pull request #116 from sevki/main
back deploy concurrency to macOS 10.15
2 parents 21608b2 + 0f10fd6 commit 30b8e2d

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

Sources/GraphQL/GraphQL.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public func graphqlSubscribe(
281281

282282
#if compiler(>=5.5) && canImport(_Concurrency)
283283

284-
@available(macOS 12, iOS 15, watchOS 8, tvOS 15, *)
284+
@available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *)
285285
/// This is the primary entry point function for fulfilling GraphQL operations
286286
/// by parsing, validating, and executing a GraphQL document along side a
287287
/// GraphQL schema.
@@ -345,7 +345,7 @@ public func graphqlSubscribe(
345345
).get()
346346
}
347347

348-
@available(macOS 12, iOS 15, watchOS 8, tvOS 15, *)
348+
@available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *)
349349
/// This is the primary entry point function for fulfilling GraphQL subscription
350350
/// operations by parsing, validating, and executing a GraphQL subscription
351351
/// document along side a GraphQL schema.

Sources/GraphQL/Subscription/EventStream.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ open class EventStream<Element> {
1010

1111
#if compiler(>=5.5) && canImport(_Concurrency)
1212

13-
@available(macOS 12, iOS 15, watchOS 8, tvOS 15, *)
13+
@available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *)
1414
/// Event stream that wraps an `AsyncThrowingStream` from Swift's standard concurrency system.
1515
public class ConcurrentEventStream<Element>: EventStream<Element> {
1616
public let stream: AsyncThrowingStream<Element, Error>
@@ -31,7 +31,7 @@ open class EventStream<Element> {
3131
}
3232
}
3333

34-
@available(macOS 12, iOS 15, watchOS 8, tvOS 15, *)
34+
@available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *)
3535
extension AsyncThrowingStream {
3636
func mapStream<To>(_ closure: @escaping (Element) throws -> To)
3737
-> AsyncThrowingStream<To, Error>

Tests/GraphQLTests/HelloWorldTests/HelloWorldTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class HelloWorldTests: XCTestCase {
6565

6666
#if compiler(>=5.5) && canImport(_Concurrency)
6767

68-
@available(macOS 12, iOS 15, watchOS 8, tvOS 15, *)
68+
@available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *)
6969
func testHelloAsync() async throws {
7070
let group = MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount)
7171

Tests/GraphQLTests/SubscriptionTests/SimplePubSub.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import GraphQL
22

33
#if compiler(>=5.5) && canImport(_Concurrency)
44

5-
@available(macOS 12, iOS 15, watchOS 8, tvOS 15, *)
5+
@available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *)
66
/// A very simple publish/subscriber used for testing
77
class SimplePubSub<T> {
88
private var subscribers: [Subscriber<T>]

Tests/GraphQLTests/SubscriptionTests/SubscriptionSchema.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ import NIO
9393

9494
let eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
9595

96-
@available(macOS 12, iOS 15, watchOS 8, tvOS 15, *)
96+
@available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *)
9797
class EmailDb {
9898
var emails: [Email]
9999
let publisher: SimplePubSub<Any>

Tests/GraphQLTests/SubscriptionTests/SubscriptionTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import XCTest
44

55
#if compiler(>=5.5) && canImport(_Concurrency)
66

7-
@available(macOS 12, iOS 15, watchOS 8, tvOS 15, *)
7+
@available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *)
88
/// This follows the graphql-js testing, with deviations where noted.
99
class SubscriptionTests: XCTestCase {
1010
let timeoutDuration = 0.5 // in seconds

0 commit comments

Comments
 (0)