export
class

  CancelToken

### Hierarchy

- CancelToken

### Implements

- IDisposable

## Index

### Constructors

- constructor

### Accessors

- cancelled

### Methods

- cancel
- dispose
- registerForCancel
- reset

## Constructors

### constructor

- new CancelToken(timeout?: number): CancelToken

- - Defined in core/types.ts:65

  #### Parameters

  - ##### Default value timeout: number = -1

  #### Returns CancelToken

## Accessors

### cancelled

- get cancelled(): "cancelled" | "timeout"

- - Defined in core/types.ts:61

  #### Returns "cancelled" | "timeout"

## Methods

### cancel

- cancel(r?: CancelReason): void

- - Defined in core/types.ts:76

  #### Parameters

  - ##### Default value r: CancelReason = "cancelled"

  #### Returns void

### dispose

- dispose(): void

- Implementation of IDisposable.dispose

  - Defined in core/types.ts:91

  #### Returns void

### registerForCancel

- registerForCancel(f: function): void

- - Defined in core/types.ts:98

  #### Parameters

  - ##### f: function

    - - (r: CancelReason): void

      - #### Parameters

        - ##### r: CancelReason

        #### Returns void

### reset

- reset(): void

- - Defined in core/types.ts:86

  #### Returns void

Generated using TypeDoc