ShellBrowser Delphi Components Documentation
|
Creates an instance of this object and adds it to the global thread pool.
class function CreateAndQueue(pMethod: TProc; const pCancellationToken: ICancellationIndicator = nil; pOnWorkDone: TProc = nil): IWorkItem; overload;
Parameters |
Description |
pMethod: TProc |
The method that should be executed. |
const pCancellationToken: ICancellationIndicator = nil |
Optional. A cancellation token. |
pOnWorkDone: TProc = nil |
Optional. Method or anonymous procedure that is executed after the work item finished its work. |
A new IWorkItem that will execute the given procedure asynchronously in the TWorkerPool.GlobalInstance.