package picos_std
Sample libraries for Picos
Install
Dune Dependency
Authors
Maintainers
Sources
picos-0.6.0.tbz
sha256=3f5a08199cf65c2dae2f7d68f3877178f1da8eabf5376e15114e5a8958087dfa
sha512=ad24910c47ce614268c4268874bb918da7f8b5f03b3ad706bbf30323635262e94ddab6be24eaebbca706bfa82c0a517d4272b396459e020c185942125c9bdb7b
doc/src/picos_std.structured/promise.ml.html
Source file promise.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
open Picos open Picos_std_event type 'a t = 'a Computation.t let of_value = Computation.returned let await = Computation.await let completed = Event.from_computation let is_running = Computation.is_running let try_terminate ?callstack t = Computation.try_cancel t Control.Terminate (Control.get_callstack_opt callstack) let terminate ?callstack t = try_terminate ?callstack t |> ignore let terminate_after ?callstack t ~seconds = Computation.cancel_after t ~seconds Control.Terminate (Control.get_callstack_opt callstack)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>