LinkInterrupt

LinkInterrupt[link]

sends an interrupt to the program at the other end of the specified WSTP connection.

Details

  • link must be an active LinkObject, as returned by functions such as LinkLaunch or Links.
  • It is up to the external program to determine how it will handle the interrupt.
  • External programs created from WSTP templates will by default set the global variable WSAbort if they receive an abort.

Examples

Basic Examples  (1)

Launch a subsidiary Wolfram Language kernel process:

Read the first packet:

Send an infinite loop program:

Use LinkReadyQ to check whether the program has finished:

Send an interrupt:

The process has stopped with an interrupt menu:

Close the link:

Wolfram Research (1996), LinkInterrupt, Wolfram Language function, https://reference.wolfram.com/language/ref/LinkInterrupt.html.

Text

Wolfram Research (1996), LinkInterrupt, Wolfram Language function, https://reference.wolfram.com/language/ref/LinkInterrupt.html.

BibTeX

@misc{reference.wolfram_2020_linkinterrupt, author="Wolfram Research", title="{LinkInterrupt}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/LinkInterrupt.html}", note=[Accessed: 22-January-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_linkinterrupt, organization={Wolfram Research}, title={LinkInterrupt}, year={1996}, url={https://reference.wolfram.com/language/ref/LinkInterrupt.html}, note=[Accessed: 22-January-2021 ]}

CMS

Wolfram Language. 1996. "LinkInterrupt." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LinkInterrupt.html.

APA

Wolfram Language. (1996). LinkInterrupt. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LinkInterrupt.html