Template for asynchronous functions that are executed in a separate thread. 更多...
#include <Async.h>
类 TAsyncRunnable< ResultType > 继承关系图:Public 成员函数 | |
| virtual uint32 | Run () override |
| Runs the runnable object. 更多... | |
| TAsyncRunnable (TUniqueFunction< ResultType()> &&InFunction, TPromise< ResultType > &&InPromise, TFuture< FRunnableThread * > &&InThreadFuture) | |
| Creates and initializes a new instance. 更多... | |
Public 成员函数 继承自 FRunnable | |
| virtual void | Exit () |
| Exits the runnable object. 更多... | |
| virtual class FSingleThreadRunnable * | GetSingleThreadInterface () |
| Gets single thread interface pointer used for ticking this runnable when multi-threading is disabled. 更多... | |
| virtual bool | Init () |
| Initializes the runnable object. 更多... | |
| virtual uint32 | Run ()=0 |
| Runs the runnable object. 更多... | |
| virtual void | Stop () |
| Stops the runnable object. 更多... | |
| virtual | ~FRunnable () |
| Virtual destructor | |
Template for asynchronous functions that are executed in a separate thread.
|
inline |
Creates and initializes a new instance.
| InFunction | The function to execute asynchronously. |
| InPromise | The promise object used to return the function's result. |
| InThreadFuture | The thread that is running this task. |
|
overridevirtual |