package octez-libs
A package that contains multiple base libraries used by the Octez suite
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
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)"
>