Skip to content

Commit cc63e34

Browse files
committed
Pick used instead of choose for the First
1 parent 9f95743 commit cc63e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ioSystem.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ let join (x : 'a Lwt.t) (y : 'b Lwt.t) : ('a * 'b) Lwt.t =
4949

5050
(** First. *)
5151
let first (x : 'a Lwt.t) (y : 'b Lwt.t) : ('a, 'b) Sum.t Lwt.t =
52-
Lwt.choose [
52+
Lwt.pick [
5353
Lwt.bind x (fun x -> Lwt.return @@ Sum.Left x);
5454
Lwt.bind y (fun y -> Lwt.return @@ Sum.Right y)]
5555

0 commit comments

Comments
 (0)