abstract class
|
TaskResultVoid
|
extends
|
TaskResultBase
|
Error information about the exception that has occurred during the task execution.
public
property
|
Exception
{
get
}
|
||
type
|
TinmanError
|
||
value
|
The
error
information
object
or
null
if
the
task
has
finished
without
errors.
|
||
inherited
|
TaskResultBase.Exception
|
Has the task finished?
public
property
|
HasFinished
{
get
}
|
||
type
|
bool
|
||
value
|
true
if
the
task
has
finished,
false
if
it
is
still
pending. |
||
inherited
|
TaskResultBase.HasFinished
|
Time span of actual task execution.
public
property
|
TimePerform
{
get
}
|
||
type
|
float32
|
||
value
|
|
The time span, in seconds. | |
inherited
|
TaskResultBase.TimePerform
|
Time span between scheduling and finishing.
public
property
|
TimeSchedule
{
get
}
|
||
type
|
float32
|
||
value
|
|
The time span, in seconds. | |
inherited
|
TaskResultBase.TimeSchedule
|
Waits for the task to finish.
public
abstract
method
|
Finish
(bool throwOnCancel = true)
|
||
params
|
throwOnCancel
|
Throw
a
PoolingException
if
the
task
has
been
cancelled?
Defaults
to
true .
|
Remarks:
For properly ending a task, the Finish method must be called exactly once, because after the call the TaskResultVoid object is recycled and might be used again for another task.
If the task has already finished, the method immediately returns (in case of success) or throws a PoolingException (in case of failure).
See also:
TaskResultBase.WaitExceptions:
Waits for the task to finish.
[ThreadSafe]
|
||||
public
method
|
Wait
(int32 timeout = 0)
|
|||
type
|
bool
|
|||
params
|
timeout
|
[>=0]
|
The
timeout
in
milliseconds.
If
0 ,
the
method
immediately
returns.
|
|
returns
|
true
if
the
task
has
finished,
false
if
it
is
still
pending.
|
|||
inherited
|
TaskResultBase.Wait
|
Remarks:
For
properly
ending
a
task,
the
Finish
method
(see
below)
must
be
called.
The
task
result
object
and
exception
information
can
be
obtained
then.
When
Wait
returns
true
,
calling
the
Finish
method
will
not
block;
it
will
otherwise.
See also:
FinishError information about the exception that has occurred during the task execution.
protected
field
|
exception
|
||
type
|
TinmanError
|
||
inherited
|
TaskResultBase.exception
|
protected
virtual
method
|
NotifyFinished
()
|
||
inherited
|
TaskResultBase.NotifyFinished
|
The logger object of this class.
public
static
readonly
field
|
Logger
|
||
type
|
ILogger
|