grpc/test
Craig Tiller 75e5ebcb14 [promises] Add a switch primitive (#35424)
Remove the old `switch` library - this used to be an implementation detail of `Seq`, `TrySeq` - but has become unused.

Add a new user facing primitive `Switch` that fills a similar role to `switch` in C++ - selecting a promise to execute based on a primitive discriminator - much like `If` allows selection based on a boolean discriminator now.

A future change will optimize this to actually lower the `Switch` into an actual `switch` statement, but for right now I want to get the functionality in.

Closes #35424

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35424 from ctiller:switchy 5308a914c6
PiperOrigin-RevId: 595140965
2024-01-02 09:59:38 -08:00
..
build Remove epollex poller (#29160) 2022-03-21 10:27:52 -07:00
build_test Make Buildifier Sanity Test Strict (#27807) 2021-11-03 14:57:04 -07:00
core [promises] Add a switch primitive (#35424) 2024-01-02 09:59:38 -08:00
cpp [xDS] move CDS and EDS watchers into xds resolver (#35011) 2024-01-02 09:20:06 -08:00
csharp/codegen [csharp codegen] Handle empty base_namespace option value to fix #34113 (#34137) 2023-08-29 14:24:52 +00:00
distrib Fixed bazel tests for 7 (#35390) 2023-12-26 10:30:45 -08:00
http2_test [Python] Migrate from yapf to black (#33138) 2023-06-09 15:08:55 -07:00
spm_build Remove `g_glip` and `class GrpcLibraryInterface` (#30414) 2022-11-14 15:30:09 -05:00
.clang-tidy Fix all instances of bugprone-undefined-memory-manipulation 2018-08-29 14:24:02 -07:00