#pragma once
+#include <folly/wangle/Deprecated.h>
#include <folly/wangle/Executor.h>
#include <folly/wangle/Future.h>
#include <folly/Optional.h>
* .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;
*/
Future<T> launch();
- /*
- * Deprecated. Use launch()
- */
- void fireAndForget() __attribute__ ((__deprecated__)) { launch(); }
-
private:
Promise<void> starter_;
folly::Optional<Future<T>> future_;