Stop listening for an event.
const compile = model.compile({
  solver: 'gecode',
  statistics: true
});
const onStat = e => {
  console.log(e.output);
};
// Start listening
compile.on('statistics', onStat);
setTimeout(() => {
  // Stop listening
  compile.off('statistics', onStat);
}, 1000);
Listen for an event.
const compile = model.compile({
  solver: 'gecode',
  statistics: true
});
solve.on('statistics', e => {
  console.log(e.statistics);
});
Generated using TypeDoc
Thenable controller for a compilation request.
Used to listen to events during compilation, and can be awaited to retrieve the compiled FlatZinc.