[]
        
(Showing Draft Content)

ReportViewer.CancellationToken

Class: CancellationToken

ReportViewer.CancellationToken

Cancellation token.

Table of contents

속성

접근자

메소드

Properties

parentToken

Optional Readonly parentToken: CancellationToken

The parent token

Accessors

isCancellationRequested

get isCancellationRequested(): boolean

Gets true if cancellation is being requested.

Returns

boolean


promise

get promise(): Promise<any>

Gets a promise that is triggered when cancellation is requested.

Returns

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