---
title: "ProgressTracker.Add"
description: "Add total work units to a progress indicator."
image: "https://tilebox.com/images/tilebox-docs-social-preview.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://tilebox.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ProgressTracker.Add

import { Fragment } from "astro/jsx-runtime";

import ApiReference from "@docs/components/ApiReference.astro";

import ParamField from "@docs/components/ParamField.astro";

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

Add total work units to a progress indicator.

## Parameters

**ctx**

type: context.Context

required: true

The task execution context.
**n**

type: uint64

required: true

The number of total work units to add.

## Returns

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

<h2 id="request-example">Usage example</h2>

```go
progress := workflows.DefaultProgress()
err := progress.Add(ctx, 10)
```

Source: https://tilebox.com/docs/api-reference/go/workflows/ProgressTracker.Add/index.mdx
