(wangle) remove Future::wait
[folly.git] / folly / wangle / Future.h
index 48e8822e57f49307db3e3d069b97e3e1e3da01e1..354a0bae953ad69d15fea381dd149f24f4cd3f76 100644 (file)
@@ -79,19 +79,6 @@ class Future {
       when this returns true. */
   bool isReady() const;
 
-  /** Wait until the result (or exception) is ready. Once this returns,
-    value() will not block, and isReady() will return true.
-
-    XXX This implementation is simplistic and inefficient, but it does work
-    and a fully intelligent implementation is coming down the pipe.
-  */
-  void wait() const {
-    while (!isReady()) {
-      // spin
-      std::this_thread::yield();
-    }
-  }
-
   Try<T>& valueTry();
 
   /** When this Future has completed, execute func which is a function that