Skip to main content
func Progress(label string) workflows.ProgressTracker
Return a named progress tracker for the currently executing task. Use named trackers when a task reports multiple progress indicators.

Parameters

label
string
required
The progress indicator label.

Returns

A progress tracker for the named progress indicator.
download := workflows.Progress("Download")
if err := download.Add(ctx, 100); err != nil {
    return err
}