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.
- Import:
@kjanat/dreamcli - Export kind: interface
- Declared in:
src/core/schema/activity.ts - Source link:
src/core/schema/activity.ts:90
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;