dbuenzli / affect

Composable concurrency primitives with OCaml effects handlers (unreleased)
https://erratique.ch/software/affect
ISC License
44 stars 3 forks source link

Affect — Concurrency and parallelism for OCaml 5

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

Installation

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.

Documentation

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.

Sample code

A few basic sample programs can be found in the test directory.

You can run them with b0 -- ping or b0 -- mouse.