diff options
Diffstat (limited to 'src/mongo/util/periodic_runner.h')
-rw-r--r-- | src/mongo/util/periodic_runner.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/util/periodic_runner.h b/src/mongo/util/periodic_runner.h index c6d7fb01ac4..2da18b9a611 100644 --- a/src/mongo/util/periodic_runner.h +++ b/src/mongo/util/periodic_runner.h @@ -89,6 +89,11 @@ public: * Resumes a paused job so that it continues executing each interval */ virtual void resume() = 0; + /** + * Stops the job, this function blocks until the job is stopped + * Safe to invalidate the job callable after calling this. + */ + virtual void stop() = 0; }; virtual ~PeriodicRunner(); |