[]
        
(Showing Draft Content)

ReportViewer.CancellationToken

Class: CancellationToken

ReportViewer.CancellationToken

Cancellation token.

Table of contents

Properties

Methods

Properties

isCancellationRequested

Readonly isCancellationRequested: boolean


parentToken

Optional Readonly parentToken: CancellationToken

The parent token


promise

Readonly promise: Promise<any>

Methods

register

register(callback): void

Registers a new cancellation handler. Handler is invoked when cancellation is requested.

Parameters

Name Type
callback (reason: any) => any

Returns

void


create

Static create(parentToken?): Object

Creates a cancellation token and trigger function.

Parameters

Name Type Description
parentToken? CancellationToken The parent token.

Returns

Object

Name Type
token CancellationToken
cancel (e: any) => void