diff --git a/example/hello-task/hello_task.cpp b/example/hello-task/hello_task.cpp index 843ca46cc..2c497f913 100644 --- a/example/hello-task/hello_task.cpp +++ b/example/hello-task/hello_task.cpp @@ -22,5 +22,6 @@ int main() { capy::thread_pool pool; capy::run_async(pool.get_executor())(say_hello()); + pool.join(); return 0; }