next
|
previous
| forward |
backward
|
up
|
top
|
index
|
toc
|
Macaulay2 web site
Macaulay2Doc
>
The Macaulay2 language
>
programming with threads
>
cancelTask(Thread)
cancelTask(Thread) -- stop a thread
Synopsis
Usage:
cancelTask t
Function:
cancelTask
Inputs:
t
,
a
thread
Consequences:
The thread
t
is interrupted by setting a flag. Eventually it will stop, as can be detected with
isReady(Thread)
. Then
taskResult(Thread)
can be used to retrieve the final value, which is always
null
.