package picos
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Pico scheduler framework
Install
dune-project
Dependency
Authors
Maintainers
Sources
picos-0.1.0.tbz
sha256=0f2dcc67ddd127c68f388f2c36a8725a15723e6aeba7d1ddfcf4e016b54a4674
sha512=bee2a99458a451be285e2f13cc3a9deda8eed4e118bcdfc51c256d2da5bae92eec3386c318fe42dcf451421543b519dc064967158b3f417c9b7b44ce97c5fb75
doc/picos.fifos/Picos_fifos/index.html
Module Picos_fifosSource
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.
Briefly:
currentreturns the current fiber.spawnforks a new deep effect handler for each fiber.yieldpushes the current fiber to the back of the internal queue and takes the next fiber to run from the head of the internal queue.cancel_afteruses a per-domain background thread that runs aUnix.selectloop to cancel computations.awaitstores the current fiber to be resumed through the trigger and takes next fiber to run from the head of the internal queue.
This scheduler also gives priority to fibers woken up from await due to being canceled.
run ~forbid main runs the main thunk with the scheduler. Returns after main and all of the fibers spawned by main have returned.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>