<div class='type'>Interface</div>


<a id='references'></a>



<h2 id="overload-1">Overload 1</h2>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
public fun interface CancellationHandle
```


Implementations of this interface can be used to cancel an ongoing operation or unregister a
listener by calling `cancel`.


## Functions



<hr class="docs-overload-divider">


<h2 id="cancel">cancel</h2>

```kotlin
public fun cancel()
```


Cancels the operation that this handle was returned for. Implementations of this method
should be idempotent. Callers should be able to cancel the same handle a second time without
causing any externally visible effects.