We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a1003e commit 141350aCopy full SHA for 141350a
packages/graphql/lib/src/core/query_manager.dart
@@ -265,7 +265,8 @@ class QueryManager {
265
// Resolve the request timeout by first checking the options of this specific request,
266
// then the manager level requestTimeout.
267
// Only apply the timeout if it is non-null.
268
- if (options.queryRequestTimeout ?? this.requestTimeout case final Duration timeout) {
+ final timeout = options.queryRequestTimeout ?? this.requestTimeout;
269
+ if (timeout case final Duration timeout) {
270
responseStream = responseStream.timeout(timeout);
271
}
272
response = await responseStream.first;
0 commit comments