Module Picos_fifos

Basic single-threaded effects based Picos compatible scheduler for OCaml 5.

ℹī¸ This scheduler implementation is mostly meant as an example and for use in testing libraries implemented in Picos.


This scheduler also gives priority to fibers woken up from await due to being canceled.

val run : ?forbid:bool -> (unit -> 'a) -> 'a

run main runs the main thunk with the scheduler. Returns after main and all of the fibers spawned by main have returned.

The optional forbid argument defaults to false and determines whether propagation of cancelation is initially allowed.