We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems that trying to resolve Lwt.npick, when the argument promises are initially pending, results in a promise that fails with Lwt.Canceled:
Lwt.npick
Lwt.Canceled
open Lwt.Infix let () = let p1, r = Lwt.task () in let p2, _ = Lwt.task () in let p3 = Lwt.npick [p1; p2] in assert (Lwt.state p3 = Lwt.Sleep); Lwt.wakeup r (); (* Expected: *) (* assert (Lwt.state p3 = Lwt.Return [()]) *) (* Actual: *) assert (Lwt.state p3 = Lwt.Fail Lwt.Canceled); (* ocamlfind opt -linkpkg -package lwt npick.ml && ./a.out *)
By comparison, if you replace npick with nchoose, you get the Expected behavior.
npick
nchoose
Since nobody has complained about this, I guess nobody is actually using npick with pending promises :)
The text was updated successfully, but these errors were encountered:
Probably best fixed after #354 is in.
Sorry, something went wrong.
0d5502f
No branches or pull requests
It seems that trying to resolve
Lwt.npick
, when the argument promises are initially pending, results in a promise that fails withLwt.Canceled
:By comparison, if you replace
npick
withnchoose
, you get the Expected behavior.Since nobody has complained about this, I guess nobody is actually using
npick
with pending promises :)The text was updated successfully, but these errors were encountered: