[]
ReportViewer.CancellationToken
Cancellation token.
• Optional Readonly parentToken: CancellationToken
The parent token
• get isCancellationRequested(): boolean
Gets true if cancellation is being requested.
boolean
• get promise(): Promise<any>
Gets a promise that is triggered when cancellation is requested.
Promise<any>
▸ register(callback): void
Registers a new cancellation handler. Handler is invoked when cancellation is requested.
| Name | Type |
|---|---|
callback |
(reason: any) => any |
void
▸ Static create(parentToken?): Object
Creates a cancellation token and trigger function.
| Name | Type | Description |
|---|---|---|
parentToken? |
CancellationToken |
The parent token. |
Object
| Name | Type |
|---|---|
token |
CancellationToken |
cancel |
(e: any) => void |