Revert D4982969: [Folly] Destroy promise/future callback functions before waking...
[folly.git] / folly / futures / Promise-inl.h
index 620890ee2da41a14f0847f0ab675c6e292d114cc..c55d34ca66e48e069918c726ebcd2c1ea67d3ed5 100644 (file)
@@ -134,7 +134,7 @@ void Promise<T>::setWith(F&& func) {
 }
 
 template <class T>
-bool Promise<T>::isFulfilled() {
+bool Promise<T>::isFulfilled() const noexcept {
   if (core_) {
     return core_->hasResult();
   }