Skip to content

Commit 930ad7e

Browse files
fix: Doc comments before attributes
1 parent 5e098b3 commit 930ad7e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Sources/GraphQL/GraphQL.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ public func graphqlSubscribe(
279279

280280
// MARK: Async/Await
281281

282-
@available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *)
283282
/// This is the primary entry point function for fulfilling GraphQL operations
284283
/// by parsing, validating, and executing a GraphQL document along side a
285284
/// GraphQL schema.
@@ -315,6 +314,7 @@ public func graphqlSubscribe(
315314
/// `errors` if an error occurs only in a specific field. If that happens the value of that
316315
/// field will be `null` and there will be an error inside `errors` specifying the reason for
317316
/// the failure and the path of the failed field.
317+
@available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *)
318318
public func graphql(
319319
queryStrategy: QueryFieldExecutionStrategy = SerialFieldExecutionStrategy(),
320320
mutationStrategy: MutationFieldExecutionStrategy = SerialFieldExecutionStrategy(),
@@ -343,7 +343,6 @@ public func graphql(
343343
).get()
344344
}
345345

346-
@available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *)
347346
/// This is the primary entry point function for fulfilling GraphQL subscription
348347
/// operations by parsing, validating, and executing a GraphQL subscription
349348
/// document along side a GraphQL schema.
@@ -382,6 +381,7 @@ public func graphql(
382381
/// If that happens the value of that field will be `null` and there
383382
/// will be an error inside `errors` specifying the reason for the failure and the path of the
384383
/// failed field.
384+
@available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *)
385385
public func graphqlSubscribe(
386386
queryStrategy: QueryFieldExecutionStrategy = SerialFieldExecutionStrategy(),
387387
mutationStrategy: MutationFieldExecutionStrategy = SerialFieldExecutionStrategy(),

Sources/GraphQL/Subscription/EventStream.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ open class EventStream<Element> {
88
}
99
}
1010

11-
@available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *)
1211
/// Event stream that wraps an `AsyncThrowingStream` from Swift's standard concurrency system.
12+
@available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *)
1313
public class ConcurrentEventStream<Element>: EventStream<Element> {
1414
public let stream: AsyncThrowingStream<Element, Error>
1515

Tests/GraphQLTests/SubscriptionTests/SimplePubSub.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import GraphQL
22

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

Tests/GraphQLTests/SubscriptionTests/SubscriptionTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import GraphQL
22
import NIO
33
import XCTest
44

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

0 commit comments

Comments
 (0)