#include <AccelByteTask.h>
Public Member Functions | |
| virtual bool | Start () |
| Start the Task. | |
| virtual EAccelByteTaskState | Pause () |
| Pause the Task in the middle of the process. | |
| virtual bool | Cancel () |
| Stop the Task in the middle of the process. | |
| virtual void | Tick (double Time) |
| Task Execution ticks. | |
| virtual bool | Finish () |
| Finish the Task. | |
| virtual EAccelByteTaskState | State () const |
| Current State of the Task. | |
| virtual double | Time () const |
| Get current Task Time. | |
| FAccelByteCancellationToken | GetCancellationToken () |
| Create Cancellation Token handler. | |
Protected Member Functions | |
| void | SetTaskState (EAccelByteTaskState NewState) noexcept |
| EAccelByteTaskState | GetTaskState () const noexcept |
Protected Attributes | |
| std::atomic< double > | TaskTime {0.0} |
| std::atomic< bool > | bIsFinished {false} |
| FAccelByteCancellationTokenRef | Token = MakeShared<FAccelByteCancellationTokenSource, ESPMode::ThreadSafe>() |
Base class for AccelByte Task that can be used in one of the schedulers
|
inlinevirtual |
Stop the Task in the middle of the process.
Reimplemented in AccelByte::FHttpRetryTask.
|
inlinevirtual |
Finish the Task.
Reimplemented in AccelByte::FHttpRetryTask.
|
inlinevirtual |
Pause the Task in the middle of the process.
Reimplemented in AccelByte::FHttpRetryTask.
|
inlinevirtual |
Start the Task.
Reimplemented in AccelByte::FHttpRetryTask.
|
inlinevirtual |
Task Execution ticks.
| Time | Timer for the ticks |
Reimplemented in AccelByte::FHttpRetryTask.