
25 Aug
2005
25 Aug
'05
2:33 p.m.
On Wed, 17 Aug 2005, Andre Merzky wrote:
Hi all,
the wait currently throws a NotRunning exception if the tast is not running anymore. That basically mean that _every_ wait has to be put into a try/catch, since the programmer does not know in advance if the task is still active.
The can do a getState on the task.
We would like to propose to change that behaviour, and just return immediately on wait, even if it is called multiple times. A NotRunning exception should only be thrown if the task was cancelled before.
or if the task has not been run. Basically we need an exception in any case that the wait can return but the output arguments of the task are invalid.
The same should hold for the TaskContainer.
Yep. Tom