A unit of work enqueued in the executor along with its metadata.
Declared in <folly/executors/ThreadPoolExecutor.h>
struct Task;
| Name | Description |
|---|---|
Expiration | Expiration policy pairing a timeout with a callback. |
| Name | Description |
|---|---|
Task [constructor] | Constructs a task from a function and its scheduling metadata. |
priority | Returns the scheduling priority of the task. |
| Name | Description |
|---|---|
context_ | Request context captured when the task was enqueued. |
enqueueTime_ | Time when the task was enqueued. |
expiration_ | Optional expiration policy for this task. |
func_ | The callable to execute. |
| Name | Description |
|---|---|
folly::ThreadPoolExecutor | Base class for implementing threadpool based executors. |
| Name | Description |
|---|---|
CPUTask | A unit of work executed by the CPUThreadPoolExecutor. |