package affect
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Cell.LazySource
Lazy immutable cells.
A lazy immutable cell is an immutable cell whose content is computed exactly once:
- A
Lazy.forceblocks until the cell's value is computed.
Cells
The type for lazy immutable cells.
make f is a new lazy cell computed with f () by the first function that calls force l.
from_exn exn bt is a lazy cell already forced to the exception exn with backtrace bt.
force cell blocks until cell's value (or exception) is computed and continues with it. The first caller to force on cell doesn't block, it executes the thunk and continues with the result.
Predicates
is_val cell is true if and only if cell has been forced and did not raise an exception.
Actions
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page