Skip to content

Commit

Permalink
[PH2][Documentation][Promise]
Browse files Browse the repository at this point in the history
  • Loading branch information
tanvi-jagtap committed Jan 13, 2025
1 parent ff989bb commit 27bf980
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/lib/promise/switch.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ namespace grpc_core {
// TEST(SwitchTest, Sample) {
// auto test_switch = [](int discriminator) {
// return Switch(discriminator,
// Case<int, 1>([] { return 100; }),
// Case<int, 2>([] { return 200; }),
// Case<int, 3>([]() -> Poll<int> { return Pending{}; }),
// Case<1>([] { return 100; }),
// Case<2>([] { return 200; }),
// Case<3>([]() -> Poll<int> { return Pending{}; }),
// Default([] { return -1; }));
// };
// EXPECT_EQ(test_switch(1)(), Poll<int>(100));
Expand Down

0 comments on commit 27bf980

Please sign in to comment.