package fiber
val create : unit -> t
Create a new pool.
task pool ~f
submit f
to be done in pool
. Errors raised pool
will not be raised in the current fiber, but inside the Pool.run
fiber.
If running pool
returns false
, this function will raise a Code_error
.
stop pool
stops the pool from receiving new tasks. After this function is called, task pool ~f
will fail to submit new tasks.
Note that stopping the pool does not prevent already queued tasks from running.
stop pool
subsequent calls to stop
ignored. In other words, this function is idempotent
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>