Skip to main content

Progress.run

Progress.runlabelup_toactionstephandle_name

Documentation

Performs provided action while reporting its progress. The action is a function that takes a Progress handle and uses its methods to report progress of the computation. The value returned from action is returned from this method.

Arguments

  • label: Overall description of the action
  • up_to: how "long" - e.g. how many steps the action is expected to take. It has to be at least one or higher.
  • action: function performing the computation while reporting its Progress
  • step: how often the progress should be reported. It has to be at least one or higher.