package octez-libs
A package that contains multiple base libraries used by the Octez suite
Install
Dune Dependency
Authors
Maintainers
Sources
octez-19.1.tar.gz
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
doc/octez-libs.stdlib-unix/Tezos_stdlib_unix/Utils/index.html
Module Tezos_stdlib_unix.Utils
Source
Source
val display_progress :
?refresh_rate:(int * int) ->
((('a, Format.formatter, unit, unit) format4 -> 'a) -> unit) ->
unit
Print over the current stdout
line. Takes a message formatting function of the form (fun m -> m <format_string>)
. Message formatting occurs only when the line is actually printed (i.e. when (fst refresh_rate) mod (snd refresh_rate) = 0
). refresh_rate
defaults to always printing the supplied message.
Examples:
display_progress (fun m -> m "Loading... %d/100" percent)
.
display_progress ~refresh_rate:(index, 1000) (fun m -> m "Written %d bytes" total)
. Display progress message whenindex
is divisible by 1000.
Finalizes progress display
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>