LIBRARY LINK 符号

AbortQ


returns TRUE if Mathematica is in the process of an abort.

更多信息更多信息

  • Used in C/C++ code in a library function called from Mathematica.
  • Code that runs for a long time should call AbortQ to see if the user has aborted the computation.

范例范例打开所有单元关闭所有单元

基本范例 (1)基本范例 (1)

This allows a long computation to be abortable from Mathematica:

while( !longTaskComplete()) {
doSomething():
if (libData->AbortQ()) {
return;
}
}
New to Mathematica? Find your learning path »
Have a question? Ask support »