proxygen
|
#include <InlineTask.h>
Classes | |
class | Awaiter |
Public Types | |
using | promise_type = detail::InlineTaskPromise< T > |
Public Member Functions | |
InlineTask (InlineTask &&other) noexcept | |
~InlineTask () | |
Awaiter | operator co_await ()&& |
Private Types | |
using | handle_t = std::experimental::coroutine_handle< promise_type > |
Private Member Functions | |
InlineTask (handle_t coro) noexcept | |
Private Attributes | |
handle_t | coro_ |
Friends | |
class | InlineTaskPromise< T > |
InlineTask<T> is a coroutine-return type where the coroutine is launched inline in the current execution context when it is co_awaited and the task's continuation is launched inline in the execution context that the task completed on.
This task type is primarily intended as a building block for certain coroutine operators. It is not intended for general use in application code or in library interfaces exposed to library code as it can easily be abused to accidentally run logic on the wrong execution context.
For this reason, the InlineTask<T> type has been placed inside the folly::coro::detail namespace to discourage general usage.
Definition at line 42 of file InlineTask.h.
|
private |
Definition at line 166 of file InlineTask.h.
using folly::coro::detail::InlineTask< T >::promise_type = detail::InlineTaskPromise<T> |
Definition at line 163 of file InlineTask.h.
|
inlinenoexcept |
Definition at line 169 of file InlineTask.h.
|
inline |
Definition at line 172 of file InlineTask.h.
|
inlineexplicitprivatenoexcept |
Definition at line 216 of file InlineTask.h.
|
inline |
|
friend |
Definition at line 215 of file InlineTask.h.
|
private |
Definition at line 217 of file InlineTask.h.