16#include "pw_async2/coro.h"
17#include "pw_async2/dispatcher.h"
18#include "pw_function/function.h"
29 : coro_(std::move(coro)), or_else_(std::move(or_else)) {}
36 coro_ = std::move(coro);
44 or_else_ = std::move(or_else);
Definition: coro_or_else_task.h:24
void SetErrorHandler(pw::Function< void(Status)> &&or_else)
Definition: coro_or_else_task.h:42
CoroOrElseTask(Coro< Status > &&coro, pw::Function< void(Status)> &&or_else)
Definition: coro_or_else_task.h:28
Poll DoPend(Context &cx) final
Definition: coro_or_else_task.h:48
void SetCoro(Coro< Status > &&coro)
Definition: coro_or_else_task.h:34
constexpr bool IsPending() const noexcept
Returns whether or not this value is Pending.
Definition: poll.h:128
bool IsRegistered() const
fit::function_impl< function_internal::config::kInlineCallableSize, !function_internal::config::kEnableDynamicAllocation, FunctionType, PW_FUNCTION_DEFAULT_ALLOCATOR_TYPE > Function
Definition: function.h:74