ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Threading.TFuture.Construct
Syntax
Pascal
class function Construct(pFunction: TFunc<TResult>; const pCancellationIndicator: ICancellationIndicator = nil): IFuture<TResult>;
Parameters 
Description 
pFunction: TFunc<TResult> 
Anonymous function that calculates the result value. 
const pCancellationIndicator: ICancellationIndicator = nil 
Optional ICancellationIndicator that acts as a cancellation token and terminates the asynchronous work. 

A new instance of this class.

Creates an instance of this class and adds it to the global worker pool.