morganstanley / hobbes

A language and an embedded JIT compiler
http://hobbes.readthedocs.io/
Apache License 2.0
1.16k stars 105 forks source link

add stop function to interrupt compilation #437

Closed mo-xiaoming closed 2 years ago

mo-xiaoming commented 2 years ago

I believe it is safe to stop it, but it is not safe to use cc again once it is stopped, the only operation left on this object is destruction, just like an object is in invalid state if exception thrown inside constructor