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

# PollingTaskRunner.RunForever

```go theme={"system"}
func (*PollingTaskRunner) RunForever(ctx context.Context) error
```

Run the polling runner continuously, polling for tasks when idle.

## Parameters

**ctx** `context.Context` *required*

The context controlling the polling loop lifetime.

## Returns

An error if the polling loop fails.

```go Go theme={"system"}
if err := runner.RunForever(ctx); err != nil {
    return err
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.