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