We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a13624 commit 8e44d0aCopy full SHA for 8e44d0a
Sources/GraphQL/Subscription/EventStream.swift
@@ -43,8 +43,10 @@ extension AsyncThrowingStream {
43
}
44
45
46
- continuation.onTermination = { @Sendable _ in
47
- task.cancel()
+ continuation.onTermination = { @Sendable reason in
+ if case .cancelled = reason {
48
+ task.cancel()
49
+ }
50
51
52
@@ -64,8 +66,10 @@ extension AsyncThrowingStream {
64
66
65
67
68
69
70
71
72
73
74
75
0 commit comments