ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Threading.IFuture.TryGetValue
Syntax
Pascal
function TryGetValue(pTimeout: UInt64; out pValue: TResult): TTaskStatus;
Parameters 
Description 
pTimeout: UInt64 
The time in milliseconds that should be waited for the completion of the task. 
out pValue: TResult 
Out-paramter that contains the Value of this task in case the result of this function is TTaskStatus.Completed.  

TTaskStatus.Running if the timeout was exceeded, pValue may conatin an intermediate value or the default value of T. This depends on the implementation. TTaskStatus.Completed if the task completed successfully and pValue is filled with the result. TTaskStatus.Canceled if the task was aborted, pValue must be ignored.

Tries to access the result and waits for completion a certain time.