Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed Jan 25, 2025
1 parent 863d207 commit 0d15354
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/core/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,10 @@ grpc_cc_library(
grpc_cc_library(
name = "prioritized_race",
public_hdrs = ["lib/promise/prioritized_race.h"],
deps = ["//:gpr_platform"],
deps = [
"promise_like",
"//:gpr_platform",
],
)

grpc_cc_library(
Expand Down
6 changes: 4 additions & 2 deletions src/core/lib/promise/prioritized_race.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#include <utility>

#include "src/core/lib/promise/detail/promise_like.h"

namespace grpc_core {

template <typename A, typename B>
Expand Down Expand Up @@ -46,8 +48,8 @@ class TwoPartyPrioritizedRace {
}

private:
A a_;
B b_;
promise_detail::PromiseLike<A> a_;
promise_detail::PromiseLike<B> b_;
};

/// Run all the promises until one is non-pending.
Expand Down

0 comments on commit 0d15354

Please sign in to comment.