Skip to content

ProgressHandle ​

Handle returned by Out.progress for lifecycle control.

Terminal methods (done, fail) are idempotent — calling any of them after the handle is already stopped is a no-op.

Signatures ​

ts
interface ProgressHandle {}

Members ​

Methods ​

increment ​

Advance progress by n units (default 1).

ts
increment(n?: number): void;

update ​

Set progress to an absolute value.

ts
update(value: number): void;

done ​

Mark progress as complete with an optional final message.

ts
done(text?: string): void;

fail ​

Mark progress as failed with an optional final message.

ts
fail(text?: string): void;

See Also ​

Released under the MIT License.