Interface CompilationProgress
interface CompilationProgress { cancel(): void; isRunning(): boolean; off<T>(event: string, callback: (e: T) => void): void; on(event: "statistics", callback: (e: StatisticsMessage) => void): void; on(event: "trace", callback: (e: TraceMessage) => void): void; on(event: "error", callback: (e: ErrorMessage) => void): void; on(event: "warning", callback: (e: WarningMessage) => void): void; on(event: "exit", callback: (e: ExitMessage) => void): void; on(event: string, callback: (e: object) => void): void;} Methods
cancel
- cancel(): void
Returns void
isRunning
- isRunning(): boolean
Returns boolean
off
- off<T>(event: string, callback: (e: T) => void): void
Parameters
- event: string
- callback: (e: T) => void
Returns void
on
- on(event: "statistics", callback: (e: StatisticsMessage) => void): void
Returns void
- on(event: "trace", callback: (e: TraceMessage) => void): void
Returns void
- on(event: "error", callback: (e: ErrorMessage) => void): void
Returns void
- on(event: "warning", callback: (e: WarningMessage) => void): void
Returns void
- on(event: "exit", callback: (e: ExitMessage) => void): void
Returns void
- on(event: string, callback: (e: object) => void): void
Parameters
- event: string
- callback: (e: object) => void
Returns void
Thenable controller for a compilation request.
Used to listen to events during compilation, and can be awaited to retrieve the compiled FlatZinc.