Interface CompilationProgress
interface CompilationProgress { cancel(): void; isRunning(): boolean; off<T>(event,
callback): void; on(event,
callback): void; on(event,
callback): void; on(event,
callback): void; on(event,
callback): void; on(event,
callback): void; on(event,
callback): void; } Methods
cancel
- cancel(): void
Returns void
isRunning
- isRunning(): boolean
Returns boolean
off
- off<T>(event, callback): void
Parameters
- event: string
- callback: ((e) => void)
Returns void
on
- on(event, callback): void
Parameters
- event: "statistics"
- callback: ((e) => void)
Returns void
- on(event, callback): void
Parameters
- event: "trace"
- callback: ((e) => void)
Returns void
- on(event, callback): void
Parameters
- event: "error"
- callback: ((e) => void)
Returns void
- on(event, callback): void
Parameters
- event: "warning"
- callback: ((e) => void)
Returns void
- on(event, callback): void
Parameters
- event: "exit"
- callback: ((e) => void)
Returns void
- on(event, callback): void
Parameters
- event: string
- callback: ((e) => 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.