19#include "pw_async2/dispatcher.h"
20#include "pw_async2/poll.h"
21#include "pw_function/function.h"
29template <typename T, typename Func = Function<Poll<T>(Context&)>>
32 using CallableType = Func;
52template <
typename Callable>
53PendFuncAwaitable(Callable) -> PendFuncAwaitable<
54 typename std::invoke_result<Callable, Context&>::type::OutputType,
55 typename std::remove_reference<Callable>::type>;
Definition: pend_func_awaitable.h:30
constexpr PendFuncAwaitable(Func &&func)
Definition: pend_func_awaitable.h:37
Poll< T > Pend(pw::async2::Context &cx)
Definition: pend_func_awaitable.h:42