Commit 6ecb0cd2 authored by James Sedgwick's avatar James Sedgwick Committed by Dave Watson

formatting nits in Executor.h

Summary:
sorry this was bothering me
also remove extra include

Test Plan: OK

Reviewed By: davejwatson@fb.com

Subscribers: fugalh, folly-diffs@

FB internal diff: D1733723

Signature: t1:1733723:1418312030:088eb084f69e2bd7703724464b2f3e71abc2607a
parent c2132bba
......@@ -16,15 +16,15 @@
#pragma once
#include <boost/noncopyable.hpp>
#include <functional>
namespace folly { namespace wangle {
typedef std::function<void()> Func;
/// An Executor accepts units of work with add(), which should be
/// threadsafe.
class Executor {
typedef std::function<void()> Func;
/// An Executor accepts units of work with add(), which should be
/// threadsafe.
class Executor {
public:
virtual ~Executor() = default;
......@@ -41,5 +41,6 @@ namespace folly { namespace wangle {
void addPtr(P fn) {
this->add([fn]() mutable { (*fn)(); });
}
};
}}
};
}} // folly::wangle
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