lwt
lwt copied to clipboard
OCaml promises and concurrent I/O
Fixes wide-char "environment block" allocation which was causing the failure. Addresses #966
`env` is an "environment block": a null-terminated block of null-terminated strings. using `caml_stat_strdup_to_os` on it doesn't work, it only copies the first string. instead, we need to use an explicit...
It seems that pushing `None` to a stream closes the stream. I think this not said, and it could be said in the doc-string for `create` which creates the push...
Can you release new version with #969 fix included? When I'm trying to build utop (2.10.0) on NixOS: ``` ocaml5.0.0-lambda-term> File "/nix/store/1kim4vsfwacfra7j0v8irkf2yx2gix6s-ocaml5.0.0-lwt-5.6.1/lib/ocaml/5.0.0/site-lib/lwt/dune-package", line 11, characters 11-16: ocaml5.0.0-lambda-term> 11 | (requires...
The current documentation is as follows: ```ocaml val get : 'a t -> 'a option Lwt.t (** [get st] removes and returns the first element of the stream, if any....
My use case for this is letting libev choose its backend freely, but checking it did not fallback to `select` in production as the 1024 file descriptor limit is not...
I mean this one: https://github.com/ocsigen/lwt/blob/3d6f0fac4fed71d3c9cbdc5b90d6a443949bb0d6/src/unix/lwt_unix_stubs.c#L934 Few years ago I made a simple image caching proxy server using cohttp (and lwt). The server was pretty loaded, and worked on an array...
If I use `Lwt_unix.fork` (or `Unix.fork`) after any successful invocation of `Lwt_main.run` (even `Lwt_main.run (Lwt.return ())`), then in all consecutive forks the lwt-io system will not work in the child...
Hi Lwt people, I randomly ended up on the following cohttp issue, which points at some Lwt usage pattern that greatly increase memory consumption in unexpected ways. (Sounds like a...