parallel 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +3 -1
- data/lib/parallel.rb +6 -4
- data/lib/parallel/version.rb +1 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e26f6721425c56c0c45ca69a2301136ffeeb520b
|
4
|
+
data.tar.gz: 68ecf7b9f6eac61c89546c500653c17260f4952c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17eab2e1bc6367300fc2cdd780e3378978bc0cb78a2ca9cdfdd16917658a697cf8a808587eb851a1a30e8829916bcff9a9b7d4230ea78e1f182b57d75a2c1716
|
7
|
+
data.tar.gz: d72aee9ea542f2032d04e1da09acaa50897f949ca9a178212d57a4a557b5cc42e7d27e776bf539e135840ec2d83947c91c732735fdc38760b33085f4c91bc792
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1,3 @@
|
|
1
|
-
|
1
|
+
�����,���C�H���d4�`�ߗ+Tf�@�<�`K%����>����]�l����_���Հ,���+�J�WUt�ĦY���X������Ǐ�,�����xNH�e����F�\�Nߞ�`�j�l���70��
|
2
|
+
����j(4�f�O�Y6�SnM1�7�c�����#��W/��w6�����V���;���B��F|�'���Žq�z� �3�^�'�ɳ02�ǩz
|
3
|
+
�{�3sA�e�{�yah�V�I�?+�b
|
data/lib/parallel.rb
CHANGED
@@ -348,13 +348,15 @@ module Parallel
|
|
348
348
|
end
|
349
349
|
|
350
350
|
def wait_for_threads(threads)
|
351
|
-
threads.compact.
|
351
|
+
interrupted = threads.compact.map do |t|
|
352
352
|
begin
|
353
353
|
t.join
|
354
|
-
|
355
|
-
|
354
|
+
nil
|
355
|
+
rescue Interrupt => e
|
356
|
+
e # thread died, do not stop other threads
|
356
357
|
end
|
357
|
-
end
|
358
|
+
end.compact
|
359
|
+
raise interrupted.first if interrupted.first
|
358
360
|
end
|
359
361
|
|
360
362
|
def handle_exception(exception, results)
|
data/lib/parallel/version.rb
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|