package b0
Software construction and deployment kit
Install
dune-project
Dependency
Authors
Maintainers
Sources
b0-0.0.6.tbz
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0
doc/b0.std/B0_std/Fut/index.html
Module B0_std.Fut
Source
Future values.
A future is an undetermined value that becomes determined at an an arbitrary point in the future. The future acts as a placeholder for the value while it is undetermined.
Future values
The type for futures with values of type 'a
.
make ()
is (f, set)
with f
the future value and set
the function to set
it. The latter can be called only once, Invalid_argument
is raised otherwise.
await f k
waits for f
to be determined and continues with k v
with v
the value of the future. If the future never determines k
is not invoked. k
must not raise.
of_list fs
determines with the values of all fs
, in the same order.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page