lwt icon indicating copy to clipboard operation
lwt copied to clipboard

OCaml promises and concurrent I/O

Results 91 lwt issues
Sort by recently updated
recently updated
newest added

In a large project with many lwt-based dependencies it is common to find code that uses `Lwt.fail exn` for rejecting promises and singling errors. Using `Lwt.fail` is of course very...

There are deadlinks in the readme, notably some documentation ones. Also, since Discord is mentioned in the readme, it would be good if one of the maintainers hanged around there....

It seems that in case of `getaddrinfo` failure, the error is... lost? https://github.com/ocsigen/lwt/blob/1157930612348286fcb5b675b3309f04e0e5a2b8/src/unix/unix_c/unix_getaddrinfo_job.c#L74 There is no "else" branch here. I get empty list from `Lwt_unix.getaddrinfo` and I'm trying to figure...

Now that @ulrikstrid has begun the libuv conversion (#328) in #811, I'd like to outline an overall plan for how to finish the whole process sanely :) The technical steps...

proposal

This test suits checks that two different promises are structurally equal. This relies on an internal behaviour that only the state is stored. Is this the intended purpose of these...

As per https://github.com/ocsigen/lwt/commit/fc633f8f02bf0f1a7b9e20607db0d44589142d9e `fork` is supposed to "cancel" the pending jobs. Unfortunately the doc does not say it does so in a delayed fashion. A comment hints that it is...

docs

I am maintaining a codebase running **lwt** on top of **NodeJS**, thanks to the excellent **js_of_ocaml**. Of course the Unix parts of **lwt** are unavailable but I have written replacements...

This is a minor note, and easily fixed on the end of the coder, but it's something that I recently found and it wasn't totally trivial to find for me...

On macOS, libev seems to default, too often, to `select(2)`. Given that a major reason for using libev in the first place is to avoid `select(2)`, we should have Lwt...

**NOTE**: this will be much easier to work on after mirage/alcotest#177 and #701. This is a big issue for lots of PRs. Some parts of it could be quite easy,...