FunctionScheduler - return whether shutdown was successful
[folly.git] / folly / experimental / FunctionScheduler.h
index e5514596c0a6c1afdba58d28447e4812140e9576..1668c501e6aef35d6086b51660aa25257c7aaa70 100644 (file)
@@ -177,8 +177,9 @@ class FunctionScheduler {
    * Stops the FunctionScheduler.
    *
    * It may be restarted later by calling start() again.
+   * Returns false if the scheduler was not running.
    */
-  void shutdown();
+  bool shutdown();
 
   /**
    * Set the name of the worker thread.