interface SolveProgress { cancel(): void; isRunning(): boolean; off<T>(event: string,
callback: ((e: T) => void)): void; on(event: "solution",
callback: ((e: SolutionMessage) => void)): void; on(event: "checker",
callback: ((e: CheckerMessage) => void)): void; on(event: "status",
callback: ((e: StatusMessage) => void)): void; on(event: "statistics",
callback: ((e: StatisticsMessage) => void)): void; on(event: "timestamp",
callback: ((e: TimestampMessage) => 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, callback): void
Parameters
- event: string
- callback: ((e: T) => void)
Returns void
on
- on(event, callback): void
Returns void
- on(event, callback): void
Returns void
- on(event, callback): void
Returns void
- on(event, callback): void
Returns void
- on(event, callback): void
Returns void
- on(event, callback): void
Returns void
- on(event, callback): void
Returns void
- on(event, callback): void
Returns void
- on(event, callback): void
Returns void
- on(event, callback): void
Parameters
- event: string
- callback: ((e: object) => void)
Returns void
Thenable controller for a solve request.
Used to listen to events during solving, and can be awaited to retrieve the final solution/statistics/status.