Template for asynchronous functions that are executed in the queued thread pool. 更多...
#include <Async.h>
类 TAsyncQueuedWork< ResultType > 继承关系图:Public 成员函数 | |
| virtual void | Abandon () override |
| Tells the queued work that it is being abandoned so that it can do per object clean up as needed. 更多... | |
| virtual void | DoThreadedWork () override |
| This is where the real thread work is done. 更多... | |
| TAsyncQueuedWork (TUniqueFunction< ResultType()> &&InFunction, TPromise< ResultType > &&InPromise) | |
| Creates and initializes a new instance. 更多... | |
Public 成员函数 继承自 IQueuedWork | |
| virtual void | Abandon ()=0 |
| Tells the queued work that it is being abandoned so that it can do per object clean up as needed. 更多... | |
| virtual void | DoThreadedWork ()=0 |
| This is where the real thread work is done. 更多... | |
| virtual | ~IQueuedWork () |
| Virtual destructor so that child implementations are guaranteed a chance to clean up any resources they allocated. | |
Template for asynchronous functions that are executed in the queued thread pool.
|
inline |
Creates and initializes a new instance.
| InFunction | The function to execute asynchronously. |
| InPromise | The promise object used to return the function's result. |
|
inlineoverridevirtual |
Tells the queued work that it is being abandoned so that it can do per object clean up as needed.
This will only be called if it is being abandoned before completion. NOTE: This requires the object to delete itself using whatever heap it was allocated in.
实现了 IQueuedWork.
|
inlineoverridevirtual |
This is where the real thread work is done.
All work that is done for this queued object should be done from within the call to this function.
实现了 IQueuedWork.