System.Threading.TFuture.GetValue
Delphi
function GetValue: T;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Threading.pas | System.Threading | TFuture |
Description
Returns the value of a specific type <T> of the function implemented using TFuture.
If the value has been already computed, you will get this value. If not, it will block and wait until this value is obtained.
TFuture<T>.GetValue is not normally used directly. Instead, an instance of the interface, IFuture<T>, is obtained from TTask.Future<T>.