Result Class |
public class Result : ITask
The Result type exposes the following members.
| Name | Description | |
|---|---|---|
| Result | Default constructor for a future result. | |
| Result(Object) | Constructor for a future result with the value given straight away. |
| Name | Description | |
|---|---|---|
| HasValue | Has the future value been set yet. | |
| IsCancelled | Was the future result value canceled. This may have been due to an exception in the task that was populating the future result value. | |
| Value | The future result value. |
| Name | Description | |
|---|---|---|
| ToString |
A string version of the value.
(Overrides ObjectToString) |
| Name | Description | |
|---|---|---|
| ForNoLongerThan |
Throw an exception if the task takes longer than the timeout.
(Defined by TaskExt) | |
| IfTimeout |
Add an action to be called if a task throws an exception due to a timeout.
(Defined by TaskExt) |
var load = new Result<Visual>(); yield return Wait.ForRead(channel.Value, load); // OR var load = Wait.ForRead(channel.Value); yield return load;