package containers-thread
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
An extension of containers for threading
Install
dune-project
Dependency
Authors
Maintainers
Sources
v3.9.tar.gz
md5=c54431781906065ead3a089883f94726
sha512=8c954cb5ff01dc73a4e04ce2ef8fb5ad5162f16b2e4b2463501dd60c428d388c03c5b641c62b5876cd0d5ac5dc244d6a44d4d92a18525a03bdbf9cca82321272
doc/containers-thread/CCBlockingQueue/index.html
Module CCBlockingQueueSource
Blocking Queue
This queue has a limited size. Pushing a value on the queue when it is full will block.
Safe-thread queue for values of type 'a
Create a new queue of size n. Using n=max_int amounts to using an infinite queue (2^61 items is a lot to fit in memory); using n=1 amounts to using a box with 0 or 1 elements inside.
Take the first element if the queue is not empty, return None otherwise.
try_push q x pushes x into q if q is not full, in which case it returns true. If it fails because q is full, it returns false.
peek q returns Some x if x is the first element of q, otherwise it returns None.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page