Update folly/futures README
[folly.git] / folly / futures / ScheduledExecutor.h
index a3f6dedbae65a58c0ede209fecff3ea0495410e7..36e051d27e96df7a812a969cd05f34b84e9d7b20 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2016 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@
 
 namespace folly {
   // An executor that supports timed scheduling. Like RxScheduler.
-  class ScheduledExecutor : public Executor {
+  class ScheduledExecutor : public virtual Executor {
    public:
      // Reality is that better than millisecond resolution is very hard to
      // achieve. However, we reserve the right to be incredible.
@@ -45,7 +45,7 @@ namespace folly {
 
      /// Schedule a Func to be executed at time t, or as soon afterward as
      /// possible. Expect millisecond resolution at best. Must be threadsafe.
-     virtual void scheduleAt(Func&& a, TimePoint const& t) {
+     virtual void scheduleAt(Func&& /* a */, TimePoint const& /* t */) {
        throw std::logic_error("unimplemented");
      }