Destroy promise/future callback functions before waking waiters
[folly.git] / folly / futures / Promise-inl.h
index c55d34ca66e48e069918c726ebcd2c1ea67d3ed5..61d4d933e2e1234fc3cffb52d198613e4ecccf77 100644 (file)
@@ -59,6 +59,10 @@ void Promise<T>::throwIfRetrieved() {
   }
 }
 
+template <class T>
+Promise<T>::Promise(detail::EmptyConstruct) noexcept
+    : retrieved_(false), core_(nullptr) {}
+
 template <class T>
 Promise<T>::~Promise() {
   detach();