ShellBrowser Delphi Components Documentation
|
class function CreateAndQueue(pFunction: TFunc<TResult>; const pCancellationIndicator: ICancellationIndicator = nil): IFuture<TResult>; overload;
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.