Skip to content

NotificationProgressHandle

Defined in: notifications.ts:130

Mutable handle returned for a running progress item.

new NotificationProgressHandle(manager, options): NotificationProgressHandle

Defined in: notifications.ts:137

NotificationManager

NotificationProgressOptions

NotificationProgressHandle

readonly id: string

Defined in: notifications.ts:131


readonly signal: AbortSignal

Defined in: notifications.ts:132

NotificationProgressToken.signal

get currentSnapshot(): NotificationProgressSnapshot

Defined in: notifications.ts:164

NotificationProgressSnapshot


get isCancellationRequested(): boolean

Defined in: notifications.ts:160

boolean

NotificationProgressToken.isCancellationRequested

cancel(): void

Defined in: notifications.ts:231

Request cancellation for the running progress item.

void


cancelled(message?): void

Defined in: notifications.ts:271

Mark the progress item as cancelled.

string = "Cancelled"

Optional terminal message shown after cancellation.

void


complete(message?): void

Defined in: notifications.ts:251

Mark the progress item as completed.

string

Optional terminal message shown to the user.

void


fail(error): void

Defined in: notifications.ts:261

Mark the progress item as failed.

unknown

Failure value to surface in the final progress state.

void


report(report): void

Defined in: notifications.ts:174

Update the current progress state.

NotificationProgressReport

Partial progress information to merge into the live state.

void


throwIfCancellationRequested(): void

Defined in: notifications.ts:280

Throw an abort error when cancellation has been requested.

void

NotificationProgressToken.throwIfCancellationRequested


update(report): void

Defined in: notifications.ts:222

Alias for report.

NotificationProgressReport

Partial progress information to merge into the live state.

void