MathKernelIsComputing Property

Gets whether the Wolfram Language is currently busy with a computation (that is, whether Compute is currently running).

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
public bool IsComputing { get; }

Property Value

Boolean

Remarks

You can use this property in an event handler method to see whether it is safe to make a call to Compute. With the HandleEvents property set to its default value of true, event handlers can fire while the Compute method is running. To prevent a reentrant call to Compute, you can check this property in an event handler to decide whether it is safe to proceed with a call to Compute.

If you go ahead and try to make a reentrant call to Compute, an InvalidOperationException will be thrown.

See Also