package dose3

  1. Overview
  2. Docs
Dose library (part of Mancoosi tools)

Install

Dune Dependency

Authors

Maintainers

Sources

dose3-6.1.tar.gz
md5=dedc2f58f2c2b59021f484abc6681d93
sha512=603462645bac190892a816ecb36ef7b9c52f0020f8d7710dc430e2db65122090fdedb24a8d2e03c32bf53a96515f5b51499603b839680d0a7a2146d6e0fb6e34

doc/dose3.common/Dose_common/Util/Progress/index.html

Module Util.ProgressSource

ProgressBars are printed immediately on stderr. * To be used, the **must** be created outside the functions where * they are used. * They can enabled or disabled (default)

Sourcetype t
Sourceval create : ?enabled:bool -> ?total:int -> ?unbounded:bool -> label -> t

create "barname" : create new a progress bar labelled "barname". The progress bar is disabled by default

Sourceval enable : label -> unit

enable "barname" : enable the progress bar with label "barname"

Sourceval disable : label -> unit

disable "barname" : disable the progress bar with label "barname"

Sourceval set_total : t -> int -> unit

set_total bar 10 : set the max width of the progress bar to 10 units

Sourceval progress : ?i:int -> t -> unit

increment the progress bar of i units

Sourceval reset : t -> unit

reset the progress bar

Sourceval available : unit -> label list

return the labels of all available progress bar

OCaml

Innovation. Community. Security.