Skip to content

Commit

Permalink
Fix to use await as there is a race
Browse files Browse the repository at this point in the history
  • Loading branch information
polytypic committed Sep 10, 2024
1 parent fa1da88 commit d2aa36c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/picos_io/picos_io.ml
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,9 @@ module Unix = struct
else zip_filter pred xs ys
| _, _ -> []
in
( zip_filter Computation.peek_exn rds rdcs,
zip_filter Computation.peek_exn wrs wrcs,
zip_filter Computation.peek_exn exs excs )
( zip_filter Computation.await rds rdcs,
zip_filter Computation.await wrs wrcs,
zip_filter Computation.await exs excs )
| exception cancelation_exn ->
Computation.cancel overall Done empty_bt;
raise cancelation_exn
Expand Down

0 comments on commit d2aa36c

Please sign in to comment.