Skip to content

ProgressTracker.Add

func (ProgressTracker) Add(ctx context.Context, n uint64) error

Add total work units to a progress indicator.

ctx context.Context required

The task execution context.

n uint64 required

The number of total work units to add.

An error if the context is not a task execution context.