@rushstack/operation-graph
Version:
Library for managing and executing operations in a directed acyclic graph.
26 lines • 887 B
TypeScript
import type { IOperationState } from './IOperationRunner';
import type { Operation } from './Operation';
/**
* Meta-entity that tracks information about a group of related operations.
*
* @beta
*/
export declare class OperationGroupRecord<TMetadata extends {} = {}> {
private readonly _operations;
private _remainingOperations;
private _groupStopwatch;
private _hasCancellations;
private _hasFailures;
readonly name: string;
readonly metadata: TMetadata;
get duration(): number;
get finished(): boolean;
get hasCancellations(): boolean;
get hasFailures(): boolean;
constructor(name: string, metadata?: TMetadata);
addOperation(operation: Operation): void;
startTimer(): void;
setOperationAsComplete(operation: Operation, state: IOperationState): void;
reset(): void;
}
//# sourceMappingURL=OperationGroupRecord.d.ts.map