Interface Progress

interface Progress {
    cancel: (() => void);
    id: string;
    report: ((update) => void);
    result: Promise<undefined | string>;
}

Properties

Properties

cancel: (() => void)

Cancel or complete the current progress.

Type declaration

    • (): void
    • Returns void

id: string

Unique progress id.

report: ((update) => void)

Update the current progress.

Type declaration

    • (update): void
    • Parameters

      Returns void

result: Promise<undefined | string>

Result of the progress.

Returns

a promise which resolves to either 'Cancel', an alternative action or undefined.