[absl] Swisstables dont allow calling begin/extract after move (#34066)

Mirrors cl/557197819.
pull/33753/head
Craig Tiller 2 years ago committed by GitHub
parent 5ef713d41b
commit cbe6c80824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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:

Loading…
Cancel
Save