---
title: "OptiCalTask"
description: "API documentation for OptiCalTask"
url: https://developer.disguise.one/python-api/docs/opticaltask/
---

# OptiCalTask

tracks progress of a cancellable asynchronous function  
Notes:

-   Currently all methods are ‘const’, since only the internal Data is ever  
    modified, not the task itself. This may need sorting out at some point.
-   Copying a task is shallow: only pointers to the Data or parent are copied.

Base class: _\_BlipValue_

Subclasses: _[OptiCalMainTask](/python-api/docs/opticalmaintask#opticalmaintask)_

## Methods

#### **cancel**(self)

#### **error**(self) -> _str_

#### **header**(self) -> _str_

#### **progress**(self) -> _float_

#### **report**(self) -> _str_

#### **running**(self) -> _bool_

#### **success**(self) -> _bool_
