An immovable Task<T> that must be co_awaited in the expression that created it.
Declared in <folly/coro/safe/NowTask.h>
template<typename T = void>
class [[nodiscard]] now_task final
| Name | Description |
|---|---|
as_unsafe [deprecated] | Escape hatch that unwraps this task into the unsafe Task API. |
| Name |
|---|
Unnamed using |
| Name | Description |
|---|---|
folly::coro::to_now_task | Converts a now_task into a now_task; friended so it can construct and unwrap one. |
folly::coro::to_now_task | Converts a safe_task into a now_task; friended so it can construct one. |
folly::coro::to_now_task | Converts a Task into a now_task; friended so it can construct one. |
| Name | Description |
|---|---|
make_error_now_task | Make a now_task that will trivially yield an exception. |
make_now_task | Same as make_now_task(). See Unit |
make_now_task | Make a now_task that trivially returns no value |
make_now_task | Make a now_task that trivially returns a value. |
to_now_task | Converts a now_task into an equivalent now_task. |
The return value should not be discarded.