graphql 2.1.8 → 2.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphql/dataloader.rb +21 -22
- data/lib/graphql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85210767fa6162b49189f17ff57be701393a99cc19b78750b6a47004a66d7310
|
4
|
+
data.tar.gz: 4ae9769770245ed92151e4779698ef280c1f22b4d39167c41a5d1ecd337da771
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1352340c9daf585df4eac26079530aa1b53f2fca54286505d2884620e0c245178ec2d28435764cf90ec9fb9f2beb4865c7e3a2a457e1db6b74949c600a951bcf
|
7
|
+
data.tar.gz: 2f4145975d6c8e61db4a48a92f0bc676a953c59b180ec2fc9f0b4c7a572ae4b4ac214cc6edbc95e2bfa953a0e2bf29bb73da770efcafabe696b4df2fbbb0f4fc
|
data/lib/graphql/dataloader.rb
CHANGED
@@ -178,36 +178,35 @@ module GraphQL
|
|
178
178
|
source_fibers = []
|
179
179
|
next_source_fibers = []
|
180
180
|
first_pass = true
|
181
|
-
manager = spawn_fiber do
|
182
|
-
while first_pass || job_fibers.any?
|
183
|
-
first_pass = false
|
184
181
|
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
182
|
+
while first_pass || job_fibers.any?
|
183
|
+
first_pass = false
|
184
|
+
|
185
|
+
while (f = job_fibers.shift || spawn_job_fiber)
|
186
|
+
if f.alive?
|
187
|
+
run_fiber(f)
|
188
|
+
next_job_fibers << f
|
192
189
|
end
|
193
|
-
|
190
|
+
end
|
191
|
+
join_queues(job_fibers, next_job_fibers)
|
194
192
|
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
next_source_fibers << f
|
201
|
-
end
|
202
|
-
end
|
193
|
+
while source_fibers.any? || @source_cache.each_value.any? { |group_sources| group_sources.each_value.any?(&:pending?) }
|
194
|
+
while (f = source_fibers.shift || spawn_source_fiber)
|
195
|
+
if f.alive?
|
196
|
+
run_fiber(f)
|
197
|
+
next_source_fibers << f
|
203
198
|
end
|
204
|
-
join_queues(source_fibers, next_source_fibers)
|
205
199
|
end
|
206
|
-
|
200
|
+
join_queues(source_fibers, next_source_fibers)
|
207
201
|
end
|
208
202
|
end
|
209
203
|
|
210
|
-
|
204
|
+
if job_fibers.any?
|
205
|
+
raise "Invariant: job fibers should have exited but #{job_fibers.size} remained"
|
206
|
+
end
|
207
|
+
if source_fibers.any?
|
208
|
+
raise "Invariant: source fibers should have exited but #{source_fibers.size} remained"
|
209
|
+
end
|
211
210
|
|
212
211
|
rescue UncaughtThrowError => e
|
213
212
|
throw e.tag, e.value
|
data/lib/graphql/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Mosolgo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: racc
|