diff options
Diffstat (limited to 'src/mongo/util')
-rw-r--r-- | src/mongo/util/exit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/exit.h b/src/mongo/util/exit.h index ba6fc5cf1c5..ee145cfd393 100644 --- a/src/mongo/util/exit.h +++ b/src/mongo/util/exit.h @@ -75,7 +75,7 @@ ExitCode waitForShutdown(); void registerShutdownTask(unique_function<void(const ShutdownTaskArgs& shutdownArgs)>); /** - * For shutdown tasks that don't care to distinguish if they're called from command shutdown + * Helper for registering shutdown tasks, converts void lambda to shutdown lambda form. */ inline void registerShutdownTask(unique_function<void()> task) { registerShutdownTask([task = std::move(task)](const ShutdownTaskArgs&) { task(); }); |