Commit dbce35e9 authored by Meng Zhang's avatar Meng Zhang Committed by Facebook Github Bot

Partially back out "[Folly] Cut explicit class template instantiations in futures"

Summary: as title

Differential Revision: D15115871

fbshipit-source-id: 16eff7f913bdd782192ffc0e06f03f1cf8f48393
parent 0371d47f
......@@ -2522,4 +2522,6 @@ Future<Unit> Timekeeper::at(std::chrono::time_point<Clock> when) {
return after(std::chrono::duration_cast<Duration>(when - now));
}
// Instantiate the most common Future types to save compile time
extern template class Future<Unit>;
} // namespace folly
......@@ -19,6 +19,13 @@
#include <folly/SingletonThreadLocal.h>
#include <folly/futures/ThreadWheelTimekeeper.h>
namespace folly {
// Instantiate the most common Future types to save compile time
template class SemiFuture<Unit>;
template class Future<Unit>;
} // namespace folly
namespace folly {
namespace futures {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment