add cancelFunctionAndWait and cancelAllFunctionsAndWait to FunctionScheduler
[folly.git] / folly / experimental / FunctionScheduler.h
index f3a2d364a6596e92966506c3ee64b5ac0295defb..7c0742b87378d799ab89ece5c729c64aeb8144a9 100644 (file)
@@ -157,11 +157,13 @@ class FunctionScheduler {
    * Returns false if no function exists with the specified name.
    */
   bool cancelFunction(StringPiece nameID);
+  bool cancelFunctionAndWait(StringPiece nameID);
 
   /**
    * All functions registered will be canceled.
    */
   void cancelAllFunctions();
+  void cancelAllFunctionsAndWait();
 
   /**
    * Resets the specified function's timer.