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 ~forbid main runs the main thunk with the scheduler. Returns after main and all of the fibers spawned by main have returned.