package affect
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Streamlined and natural concurrency model for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
affect-0.0.0.tbz
sha512=b328f6696e60c489da8cc2e8fad0537ca6634a39fc0c5de5840d4f98561f110617ef79ba8285ee8427dd99908c6b3d39114973598cddc5ded91abcce3b91b9a6
doc/affect/Affect/Semaphore/index.html
Module Affect.SemaphoreSource
Semaphores.
A semaphore with capacity n throttles access to a ressource with limited n.
- An
acquireblocks until the semaphore's value can be decremented to a non-negative integer. - A
releaseincrements the value of the semaphore. It doesn't block but it is a programming error to increment it overn.
Semaphores
The type for semaphores.
release s increments the value of s. If there are multiple blocked acquire on s, only the earliest acquire unblocks.
with_acquired s f acquires s executes f () and releases s when f returns a value or an exception.
Properties
Actions
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page