
16 Jul
2018
16 Jul
'18
5:58 a.m.
Il 13/07/2018 17:29, Massimo Zaniboni ha scritto:
``` () <$ (waitAny [p, c]) ```
waitAny was not the correct solution, because it waits completition of only one thread, and not all threads. So I defined ``waitAll``. It returns also the most informative exception. In particular synchronous exceptions are favoured respect asynchronous exceptions, because synchronous exceptions are generated from the processing code, and not from other threads or the run-time system. I updated the repo with the code: https://github.com/massimo-zaniboni/blocked-on-mvar