Really fix the clang warning in Format-inl.h
[folly.git] / folly / wangle / Later.h
index 228e9737308c69d1d1e6ee285e2f9a1c580350d6..329748e1e7a82af9d3cbec88ca9f41ac063d6ceb 100644 (file)
@@ -16,6 +16,7 @@
 
 #pragma once
 
+#include <folly/wangle/Deprecated.h>
 #include <folly/wangle/Executor.h>
 #include <folly/wangle/Future.h>
 #include <folly/Optional.h>
@@ -76,8 +77,10 @@ template <typename T> struct isLater;
  *   .then([=]Try<DiskResponse>&& t) { return sendClientResponse(t.value()); })
  *   .launch();
  */
+// DEPRECATED. Just use Future::via() to accomplish the same thing. If it's
+// not obvious how, feel free to reach out.
 template <class T>
-class Later {
+class DEPRECATED Later {
  public:
   typedef T value_type;
 
@@ -210,11 +213,6 @@ class Later {
    */
   Future<T> launch();
 
-  /*
-   * Deprecated. Use launch()
-   */
-  void fireAndForget() __attribute__ ((__deprecated__)) { launch(); }
-
  private:
   Promise<void> starter_;
   folly::Optional<Future<T>> future_;