package picos_std
Sample libraries for Picos
Install
Dune Dependency
Authors
Maintainers
Sources
picos-0.5.0.tbz
sha256=862d61383e2df93a876bedcffb1fd1ddc0f96c50b0e9c07943a2aee1f0e182be
sha512=87805379017ef4a7f2c11b954625a3757a0f1431bb9ba59132202de278b3e41adbe0cdc20e3ab23b7c9a8c5a15faeb7ec79348e7d80f2b14274b00df0893b8c0
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)"
>