|
olp-cpp-sdk 1.24.0
|
A container for requests that have not finished yet. More...
#include <PendingRequests.h>
Public Member Functions | |
| bool | CancelAll () |
| Cancels all the pending tasks. | |
| bool | CancelAllAndWait () |
| Cancels all the pending tasks and waits for the tasks that are finalizing. | |
| void | Insert (TaskContext task_context) |
| Inserts the task context into the request container. | |
| void | Remove (TaskContext task_context) |
| Removes the task context. | |
| size_t | GetTaskCount () const |
| Gets the number of tasks. | |
A container for requests that have not finished yet.
| bool olp::client::PendingRequests::CancelAll | ( | ) |
Cancels all the pending tasks.
CancelAllAndWait().| bool olp::client::PendingRequests::CancelAllAndWait | ( | ) |
Cancels all the pending tasks and waits for the tasks that are finalizing.
| size_t olp::client::PendingRequests::GetTaskCount | ( | ) | const |
Gets the number of tasks.
| void olp::client::PendingRequests::Insert | ( | TaskContext | task_context | ) |
Inserts the task context into the request container.
| task_context | The TaskContext instance. |
| void olp::client::PendingRequests::Remove | ( | TaskContext | task_context | ) |
Removes the task context.
| task_context | The TaskContext instance. |