Revert D4982969: [Folly] Destroy promise/future callback functions before waking...
[folly.git] / folly / futures / Promise-inl.h
index 4d3d0dbe0d91ce913b47ba81423b130079812902..c55d34ca66e48e069918c726ebcd2c1ea67d3ed5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -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();
   }