proxygen
folly::coro::is_awaitable< T > Struct Template Reference

#include <Traits.h>

Inheritance diagram for folly::coro::is_awaitable< T >:
folly::Disjunction< detail::_has_member_operator_co_await< T >, detail::_has_free_operator_co_await< T >, is_awaiter< T > >

Detailed Description

template<typename T>
struct folly::coro::is_awaitable< T >

is_awaitable<T>::value is_awaitable_v<T>

Query if a type, T, is awaitable within the context of any coroutine whose promise_type does not have an await_transform() that modifies what is normally awaitable.

A type, T, is awaitable if it is an Awaiter, or if it has either a member operator co_await() or a free-function operator co_await() that returns an Awaiter.

Definition at line 114 of file Traits.h.


The documentation for this struct was generated from the following file: