Affect
Composable concurrency primitives with OCaml effects handlers (unreleased)
Install / Use
/learn @dbuenzli/AffectREADME
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.
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.
Related Skills
node-connect
334.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
334.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.2kCommit, push, and open a PR
