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:
Send an infinite loop program:
Use LinkReadyQ to check whether the program has finished:
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.
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