We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f95743 commit cc63e34Copy full SHA for cc63e34
ioSystem.ml
@@ -49,7 +49,7 @@ let join (x : 'a Lwt.t) (y : 'b Lwt.t) : ('a * 'b) Lwt.t =
49
50
(** First. *)
51
let first (x : 'a Lwt.t) (y : 'b Lwt.t) : ('a, 'b) Sum.t Lwt.t =
52
- Lwt.choose [
+ Lwt.pick [
53
Lwt.bind x (fun x -> Lwt.return @@ Sum.Left x);
54
Lwt.bind y (fun y -> Lwt.return @@ Sum.Right y)]
55
0 commit comments