diff --git a/example/example.cpp b/example/example.cpp index 53053080..b0f23c5f 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -114,6 +114,8 @@ void async_example() { async_file->info("Async message #{}", i + 1); } + // you can wait for all the messages to processed: + // spdlog::thread_pool()->wait_empty(); } // syslog example (linux/osx/freebsd)