# Timeout

> The Timeout toggle adds a Timeout property to the activity. If the activity does not finish executing within the amount of time specified in this property, an error will be thrown. The default timeout is automatically set to 60000 ms (1 minute).

The Timeout toggle adds a Timeout property to the activity. If the activity does not finish executing within the amount of time specified in this property, an error will be thrown. The default timeout is automatically set to 60000 ms (1 minute).

## Activity Creator

![docs image](https://dev-assets.cms.uipath.com/assets/images/marketplace/marketplace-docs-image-33643-bdcd8138-7ca1e4c1.webp)

## Generated Code

Simple activities with timeouts extend the `TimeoutAsyncCodeActivity` class, which already contains a Timeout.

```
using ...
namespace MyCompany.MyProduct.Activities
{
    [LocalizedDisplayName(nameof(Resources.Addition_DisplayName))]
    [LocalizedDescription(nameof(Resources.Addition_Description))]
    public class AdditionWithTimeout : TimeoutAsyncCodeActivity
    {
      ...
    }
}
```

## Effect in UiPath Studio

![docs image](https://dev-assets.cms.uipath.com/assets/images/marketplace/marketplace-docs-image-36596-64525f3d-2de19b72.webp)
