void InterruptEvaluation()
Sub InterruptEvaluation
void InterruptEvaluation()
abstract InterruptEvaluation : unit -> unit
This method is typically called from a different thread than the one that is performing the computation. That "computation" thread is typically blocking in WaitForAnswer or some other method that is waiting for the result to arrive from the Wolfram Language. If you want to interrupt the computation to provide your users with choices ("abort", "continue", "enter dialog", etc.), you can call InterruptEvaluation on some other thread (perhaps in response to the user clicking an "interrupt" button).
Be aware that the Wolfram session is not always in a state where it is receptive to interrupt requests.What this method does is simply use PutMessage to send a MathLinkMessage.Interrupt to the kernel. It is provided as a convenience to shield programmers from such low-level details.