Go to the documentation of this file.
15 #ifndef GRPC_CORE_LIB_PROMISE_CALL_PUSH_PULL_H
16 #define GRPC_CORE_LIB_PROMISE_CALL_PUSH_PULL_H
22 #include <type_traits>
24 #include "absl/types/variant.h"
34 namespace promise_detail {
36 template <
typename FMain,
typename FPush,
typename FPull>
78 if (
auto*
status = absl::get_if<kPollReadyIdx>(&p)) {
88 if (
auto*
status = absl::get_if<kPollReadyIdx>(&p)) {
100 if (
auto*
status = absl::get_if<kPollReadyIdx>(&p)) {
138 template <
typename FMain,
typename FPush,
typename FPull>
148 #endif // GRPC_CORE_LIB_PROMISE_CALL_PUSH_PULL_H
CallPushPull(FMain f_main, FPush f_push, FPull f_pull)
typename PollTraits< decltype(std::declval< PromiseLike< FMain > >()())>::Type Result
GRPC_BITSET_CONSTEXPR_MUTATOR void set(int i)
bool IsStatusOk(const absl::Status &status)
Poll< Result > operator()()
CallPushPull(CallPushPull &&other) noexcept
constexpr bool is_set(int i) const
promise_detail::CallPushPull< FMain, FPush, FPull > CallPushPull(FMain f_main, FPush f_push, FPull f_pull)
CallPushPull & operator=(CallPushPull &&other) noexcept
GPR_NO_UNIQUE_ADDRESS PromiseLike< FPush > push_
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
GPR_NO_UNIQUE_ADDRESS PromiseLike< FPull > pull_
void Construct(T *p, Args &&... args)
PromiseLike< FMain > main_
CallPushPull & operator=(const CallPushPull &)=delete
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:42