From 4d24b93cbbcad9c4974dab05a0f5a524fdd35a04 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Tue, 15 Aug 2023 21:43:15 -0700 Subject: [PATCH] Revert "Revert "[absl] Swisstables dont allow calling begin/extract after move"" (#34074) Reverts grpc/grpc#34072 This code is not used in anything related to production at this point and so could not have caused any breakage. --- src/core/lib/promise/wait_set.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/lib/promise/wait_set.h b/src/core/lib/promise/wait_set.h index f6ab341cf5b..2f978e5750a 100644 --- a/src/core/lib/promise/wait_set.h +++ b/src/core/lib/promise/wait_set.h @@ -64,7 +64,9 @@ class WaitSet final { }; GRPC_MUST_USE_RESULT WakeupSet TakeWakeupSet() { - return WakeupSet(std::move(pending_)); + auto ret = WakeupSet(std::move(pending_)); + pending_.clear(); // reinitialize after move. + return ret; } private: