sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
run f h
initializes the engine and runs the thunk f
, using h
to handle modifier effects. See Handler
.
try_with f h
runs the thunk f
, using h
to handle the intercepted modifier effects. See Handler
.
Currently, try_with
is an alias of run
, but try_with
is intended to use within run
to intercept effects, while run
is intended to be at the outermost layer to handle effects. That is, the following is the expected program structure:
run @@ fun () ->
(* code *)
try_with f
(* more code *)