From fb77b40718ec1ce41e8e7625cfb44dc2d7ba0229 Mon Sep 17 00:00:00 2001 From: Shubhanshu Agrawal Date: Tue, 11 Oct 2016 08:02:40 -0700 Subject: [PATCH] BatchDispatcher add() interface Summary: converting add(value&&) to add(value) to make it easier for callsites to use. Reviewed By: A5he Differential Revision: D4000416 fbshipit-source-id: c66f4d93d1223286bbc786d17f65ed02a63cc794 --- folly/fibers/BatchDispatcher.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/fibers/BatchDispatcher.h b/folly/fibers/BatchDispatcher.h index 671675dd..dada4275 100644 --- a/folly/fibers/BatchDispatcher.h +++ b/folly/fibers/BatchDispatcher.h @@ -75,7 +75,7 @@ class BatchDispatcher { : executor_(executor), state_(new DispatchState(std::move(dispatchFunc))) {} - Future add(ValueT&& value) { + Future add(ValueT value) { if (state_->values.empty()) { executor_.add([state = state_]() { dispatchFunctionWrapper(*state); }); } -- 2.34.1