Fix exception handling in fibers-map-with-progress
All checks were successful
/ test (push) Successful in 9s
All checks were successful
/ test (push) Successful in 9s
This commit is contained in:
parent
09ca6cfb6b
commit
8f3e0a9a1d
2 changed files with 22 additions and 4 deletions
|
@ -217,9 +217,9 @@
|
|||
(if (null? active-channels)
|
||||
(map
|
||||
(match-lambda
|
||||
((#f . ('exception . exn))
|
||||
((#f . ('exception exn))
|
||||
(raise-exception exn))
|
||||
((#f . ('result . val))
|
||||
((#f . ('result val))
|
||||
val))
|
||||
channels-to-results)
|
||||
(loop
|
||||
|
@ -239,10 +239,10 @@
|
|||
(if (eq? channel c)
|
||||
(cons #f
|
||||
(match result
|
||||
(('exception . exn)
|
||||
(('exception exn)
|
||||
result)
|
||||
(_
|
||||
(cons 'result result))))
|
||||
(list 'result result))))
|
||||
(cons c r))))
|
||||
channels-to-results)))
|
||||
#f))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue