ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Threading.TAsyncProcedure.Create

Use this method to create an TProcedureWorkItem

Syntax
Pascal
constructor Create(pMethod: TProc; const pCancellationToken: ICancellationIndicator = nil; pOnWorkDone: TProc = nil); overload;
Parameters 
Description 
pMethod: TProc 
The procedure that should be executed in this work item. 
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. 
pTag 
[optional] a tag for the work item.