use folly::Function<void()> in folly::Executor interface
[folly.git] / folly / Executor.h
index 6038ee62f477da2f6ca20dffc25d560c13d4dce0..89e684e6076d105f9adb9d95cc75ef536ee926be 100644 (file)
 #include <functional>
 #include <stdexcept>
 
+#include <folly/Function.h>
+
 namespace folly {
 
-typedef std::function<void()> Func;
+using Func = Function<void()>;
 
 /// An Executor accepts units of work with add(), which should be
 /// threadsafe.