ractorize 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/src/ractorize.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 02d57de76c96c80c8fa5d7a49dcc54a12e9c7f849ff8951faba91806ff5dadbb
|
|
4
|
+
data.tar.gz: e6ae43cf484790673a4010505622b7255a09b7a5d04f358a2b5a8bec0ab6b917
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5034e676239f3e6ccd3ea1aa83a0923c0b439800127fd1a3444c08ce93de706f48b05f87e68d697cddb6612d42d7ca057b1b29adef5954ca5b51575cd1320050
|
|
7
|
+
data.tar.gz: 461059bac8aeea154ec67ed22ed530ac7f8921902bef688d7a5d21927e67adaaab582e2bc528b7a556b4c1fb733a37b9a9202bf261eb6d048125761d516a720f
|
data/CHANGELOG.md
CHANGED
data/src/ractorize.rb
CHANGED
|
@@ -275,6 +275,12 @@ module Ractorize
|
|
|
275
275
|
|
|
276
276
|
begin
|
|
277
277
|
return_port.send(value)
|
|
278
|
+
rescue IOError => e
|
|
279
|
+
# Unclear why this sometimes manifests as this error instead of ClosedError but
|
|
280
|
+
# need to handle them both.
|
|
281
|
+
# :nocov:
|
|
282
|
+
raise unless e.message == "closed stream"
|
|
283
|
+
# :nocov:
|
|
278
284
|
rescue Ractor::ClosedError
|
|
279
285
|
# Whoa... this error inherits from StopIteration and will kill the loop!!!
|
|
280
286
|
# Nothing really to do here but keep the loop going and handle other
|