---
title: cancel
framework: CKTool JS
role: symbol
role_heading: Instance Method
platforms: [cktool js 1.2.15+]
path: cktooljs/cancellablepromise/cancel
---

# cancel

Stops any work the promise is doing.

## Declaration

```data
void cancel();
```

## Discussion

Discussion When called, it throws a CancelledError.
