Reference TAsyncTaskRunner<T>
Declared in Codebot.Support.pas on line 41
TAsyncTaskRunner<T> implements IAsyncTask and invokes OnComplete with a result of type T when the task finishes
TAsyncTaskRunner<T> = class(TInterfacedObject, IAsyncTask, IAsyncRunnerBase, IAsyncRunner<T>)
public
type
{ TNotifyComplete is invoked when the task finishes }
TNotifyComplete = procedure(Task: IAsyncTask; Result: T) of object;
{ Create a busy task optionally holding data which it may own }
constructor Create(OnComplete: TNotifyComplete; Data: TObject = nil; OwnsObject: Boolean = False); virtual;
{ Destroy the task freeing data if it is owned }
destructor Destroy; override;
end;See also
IAsyncTask in Codebot.System.pas