Skip to content

Commit

Permalink
Merge Master
Browse files Browse the repository at this point in the history
  • Loading branch information
tanvi-jagtap committed Jan 13, 2025
2 parents 6c51de1 + 99d81eb commit c3716e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/lib/promise/match_promise.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ namespace promise_detail {
// Match Promise Combinator
//
// Input:
// The first input is an absl::variant<...> object.
// The first input is an std::variant<...> object.
// The remaining inputs are either
// 1. Promises which take one of the variant types as input parameter and return
// Poll<T>
// 2. Functors that take one of the variant types as input parameter and return
// a Promise with return type Poll<T>
// 3. There MUST be one input promise/functor corresponding to each type in the
// absl::variant<...> input
// std::variant<...> input
// 4. The return type of all promises must be the same.
//
// Returns:
// Match promise combinator returns Poll<T>
//
// Polling the Match combinator works in the following way :
// The Match combinator selects which of the input promises to execute based on
// the value of the absl::variant. Only 1 of the input promises will be executed
// the value of the std::variant. Only 1 of the input promises will be executed
// on polling the Match combinator. Like all other promises, the Match
// combinator can be polled till it resolves.
//
Expand Down

0 comments on commit c3716e4

Please sign in to comment.