From 4d7245bb6705f218458bd85ba43bf72b8b887a8f Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 27 May 2018 03:18:12 +0300 Subject: [PATCH] update example --- example/example.cpp | 2 ++ 1 file changed, 2 insertions(+) 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)