ShellBrowser Delphi Components Documentation
|
Creates an instance of this class and adds it to the global worker thread pool.
class function CreateAndQueue(pFunction: TFunc<TParamType, TResult>; const pParam: TParamType; const pCancellationIndicator: ICancellationIndicator = nil; const pWorkDone: TProc<TParamType, TResult> = nil): IFuture<TResult>; overload;
Parameters |
Description |
pFunction: TFunc<TParamType, TResult> |
Anonymous function to execute asynchronously. |
const pParam: TParamType |
A parameter of the second generic type. |
const pCancellationIndicator: ICancellationIndicator = nil |
Optional ICancellationIndicator that acts as a cancellation token and terminates the asynchronous work. |
const pWorkDone: TProc<TParamType, TResult> = nil |
Optional function that will be called after the work item has finished its work. |