Conversation
|
Hmm, I find both versions of this function suspicious. Before this PR, After this PR, Maybe a good behavior is to have |
|
Indeed, I hadn't considered we would still have code from |
Fix #2958 Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
|
I reworked the code. The result is probably not as efficient as it could be, but at least the implementation of I also changed |
…lugin, dune-private-libs and dune-glob (2.1.2) CHANGES: - Fix a bug in the `Fiber.finalize` function of the concurrency monad of Dune, causing a race condition at the user level (ocaml/dune#3009, fix ocaml/dune#2958, @diml)
This fixes #2958.
The problem was the
finallywas called too late in case of error. I also removedwait_errorsfrom the API as it's unused and it seems like it could cause the same issue.