ocaml-multicore / picos

Interoperable effects based concurrency
https://ocaml-multicore.github.io/picos/doc/picos/index.html
ISC License
86 stars 3 forks source link

Add an implicitly propagated flock of fibers #204

Closed polytypic closed 2 months ago

polytypic commented 2 months ago

This PR adds to the picos.structured library a new Flock module, which essentially provides a more convenient interface to the existing Bundle mechanism by passing the underlying Bundle through FLS.

The naming is a bit tongue in cheek. The idea is that, unlike a "bundle", a "flock" (like a flock of birds) is something that you cannot really hold in your hands. Flock is also a term used in conjuction with fibers.