Promise<T>::makeEmpty() and Future<T>::makeEmpty()
[folly.git] / folly / futures / Promise.h
index 75119129df82a69a65f2e8dc6298c0d16f0351e9..4a3f51c561e87b68f76f3cd22beb8cce7a5f6590 100644 (file)
@@ -34,6 +34,8 @@ class CoreCallbackState;
 template <class T>
 class Promise {
  public:
+  static Promise<T> makeEmpty() noexcept; // equivalent to moved-from
+
   Promise();
   ~Promise();