diff --git a/talk/concurrency/threadsasync.tex b/talk/concurrency/threadsasync.tex index 8b0a3990..b33d6654 100644 --- a/talk/concurrency/threadsasync.tex +++ b/talk/concurrency/threadsasync.tex @@ -64,7 +64,7 @@ void bar() {...} int main() { std::jthread t1{foo}; - std::jthread t2{bar}; t2.request_stop(); + std::jthread t2{bar}; // No join required return 0; }