Affect is a streamlined and natural concurrency model for OCaml 5. It just provides parallel asynchronous function calls with structured cooperative concurrency and cancellation.
Affect is distributed under the ISC license. It has no dependencies.
Homepage: https://erratique.ch/software/affect
Affect can be installed with opam:
opam pin add affect https://erratique.ch/repos/affect.git
If you don't use opam consult the opam file for build
instructions.
The documentation can be consulted online or via odig doc affect.
Questions are welcome but better asked on the OCaml forum than on the issue tracker.
A few basic sample programs can be found in the test directory.
ping.ml, client and server usingFunixto do useless networking on your machine.mouse.ml, proof of concept interfacing with the SDL event loop.happy_eyeballs.ml, an implementation of a happy eyeballs
You can run them with b0 -- ping or b0 -- mouse.