ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Threading.TFutureWithParam
Jam_Threading_TFutureWithParamJam_Threading_TFutureWithParamJam_Threading_TFutureWithParamJam_Threading_TFutureWithParamJam_Threading_TFutureWithParamJam_Threading_TFutureWithParamJam_Threading_TFutureWithParam
Syntax
Pascal
TFutureWithParam<TResult, TParamType> = class(TFuture<TResult>, IFuture<TResult>);

A TFuture, that allows to add a procedure that will be executed synchronously after the workitem has finished. A second generic parameter can be used to pass an object through to the WorkDone procedure.

Jam.Threading.TBasicWorkItem
 
Name 
Description 
 
Default constructor that creates an object instance of this class.  
 
Name 
Description 
 
Getter for the Status property.  
 
Returns the result.  
 
Tries to access the result and waits for completion a certain time.  
Jam.Threading.ICancellationIndicator
 
Name 
Description 
 
Gets whether cancellation has been requested for this token. 
Jam.Threading.ITerminatable
 
Name 
Description 
 
This method should terminate the work done by this item  
Jam.Threading.IWorkItem
 
Name 
Description 
 
Returns the class type of the workitem, Implemented automatically by TObject.Classtype.  
 
The method that actually does the work. This method should always be thread safe 
 
Is called by the TWorkerThreadPool after DoWork() has finished. 
 
Getter for the OnWorkDone event.  
 
Returns the current status of the work item, like running or finished.  
 
Getter for the Tag property.  
 
Setter for the OnWorkDone event.  
 
Allows set the status of a worlk item and e.g. to pause it.  
 
Waits until the workitem has finished its work and then returns. 
Jam.Threading.TFuture
 
Name 
Description 
 
Creates an instance of this class and adds it to the global worker pool.  
 
Creates an instance of this class and adds it to the global worker pool.  
Jam.Threading.TFutureWithParam
 
Name 
Description 
 
Returns that status of the future, test against TTaskStatus.Completed to check if a valid vlaue is available. 
 
Gives access to the result and waits until it is ready. 
Jam.Threading.IWorkItem
 
Name 
Description 
 
This event is fired synchronized when the work of the work item is finished 
 
A tag that can be freely used to identify a workitem or store custom data.