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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b782b32cca741c787a2595a4692c1904604b6780
4
- data.tar.gz: c53c54728e088a6fb4e22b53b4d0099f262dec07
3
+ metadata.gz: e26f6721425c56c0c45ca69a2301136ffeeb520b
4
+ data.tar.gz: 68ecf7b9f6eac61c89546c500653c17260f4952c
5
5
  SHA512:
6
- metadata.gz: 1eb84cf76fe029ff5b93927d0e9ff943177e3e9ab122791e7bbb389d4980efa4251bec521560738a5ac82694ee02bab727790672c4bff4e6b858a8f67fe1bdbb
7
- data.tar.gz: 09fa5d0d9689cdff82a3d34b81b06ca99e8b3ccfbe9415837ee73824b2993a6aebe251aa84e6f554ef9d455322bf9d8c955411ff5c334a8ff5c5a7d94acec008
6
+ metadata.gz: 17eab2e1bc6367300fc2cdd780e3378978bc0cb78a2ca9cdfdd16917658a697cf8a808587eb851a1a30e8829916bcff9a9b7d4230ea78e1f182b57d75a2c1716
7
+ data.tar.gz: d72aee9ea542f2032d04e1da09acaa50897f949ca9a178212d57a4a557b5cc42e7d27e776bf539e135840ec2d83947c91c732735fdc38760b33085f4c91bc792
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1,3 @@
1
- p'/̭�'f����w{rW(�#c\T��v B Sxq0��� bSmXCb�-��9�}܈h/t ]'����ś �e�gM`��s�۟d�V����k�`r��6!b���ɐ���مfu
1
+ �����,���CH���d4�`�ߗ+Tf�@�<�`K%����>����]l����_���Հ,���+�JWUt�ĦY���X������Ǐ�,���� xNH�e����F�\�Nߞ�`�jl���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
@@ -348,13 +348,15 @@ module Parallel
348
348
  end
349
349
 
350
350
  def wait_for_threads(threads)
351
- threads.compact.each do |t|
351
+ interrupted = threads.compact.map do |t|
352
352
  begin
353
353
  t.join
354
- rescue Interrupt
355
- # thread died, do not stop other threads
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)
@@ -1,3 +1,3 @@
1
1
  module Parallel
2
- VERSION = Version = '1.2.1'
2
+ VERSION = Version = '1.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
metadata.gz.sig CHANGED
Binary file