Reverted commit D3557832
[folly.git] / folly / futures / helpers.h
index bcfd8ba358d6ce03232646b6545a1f1c1bc42fd8..75f925374bd22521b2a5c8fc22e6113d823f1d48 100644 (file)
@@ -147,7 +147,7 @@ inline Future<Unit> via(
 /// This is semantically equivalent to via(executor).then(func), but
 /// easier to read and slightly more efficient.
 template <class Func>
-auto via(Executor*, Func func)
+auto via(Executor*, Func&& func)
   -> Future<typename isFuture<decltype(func())>::Inner>;
 
 /** When all the input Futures complete, the returned Future will complete.