package async_kernel
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Monadic concurrency library
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=01ced973dbc70535f692f38bed524ae82dba17e26e58791b2fbf0d647b160d2e
doc/src/async_kernel/time_ns.ml.html
Source file time_ns.ml
1 2 3 4 5 6 7 8 9 10 11include Core.Core_private.Time_ns_alternate_sexp (* [after] is like [add], but deals nicely with the case of overflow by instead returning [max_value]. Time-source functions use [after] to avoid immediately firing events that should never fire, due to the overflow leading to a negative time that appears to be in the past. We don't check underflow because that is very unlikely, requiring both a negative time and a negative span. *) let after t span = let result = add t span in if Span.( > ) span Span.zero && result < t then max_value_for_1us_rounding else result ;;
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>