[]
ReportViewer.CancellationToken
Cancellation token.
• Readonly isCancellationRequested: boolean
• Optional Readonly parentToken: CancellationToken
The parent token
• Readonly promise: 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 |