package ocaml-base-compiler
Official release 5.0.0
Install
Dune Dependency
Authors
Maintainers
Sources
5.0.0.tar.gz
sha256=72fa3d0ba19b82fcb9e6c62e0090b9d22e5905c4be0f94faf56904a9377a9e5b
doc/stdlib/Stdlib/Domain/DLS/index.html
Module Domain.DLS
Source
Domain-local Storage
Type of a DLS key
new_key f
returns a new key bound to initialiser f
for accessing domain-local variables.
If split_from_parent
is provided, spawning a domain will derive the child value (for this key) from the parent value.
Note that the split_from_parent
call is computed in the parent domain, and is always computed regardless of whether the child domain will use it. If the splitting function is expensive or requires client-side computation, consider using 'a Lazy.t key
.
get k
returns v
if a value v
is associated to the key k
on the calling domain's domain-local state. Sets k
's value with its initialiser and returns it otherwise.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>