projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use folly::Function<void()> in folly::Executor interface
[folly.git]
/
folly
/
Executor.h
diff --git
a/folly/Executor.h
b/folly/Executor.h
index 6038ee62f477da2f6ca20dffc25d560c13d4dce0..89e684e6076d105f9adb9d95cc75ef536ee926be 100644
(file)
--- a/
folly/Executor.h
+++ b/
folly/Executor.h
@@
-21,9
+21,11
@@
#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.