chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.97k stars 1.22k forks source link

test: add unit tests for spawn() #1546

Open cbodley opened 1 month ago

cbodley commented 1 month ago

some simple test cases for spawn() with any_completion_handler, deferred, cancellation, and exceptions

the second test is a reproducer for https://github.com/chriskohlhoff/asio/issues/1543, and doesn't pass against master

cbodley commented 1 month ago

the second test is a reproducer for #1543, and doesn't pass against master

if you prefer, i'm happy to split this commit into a separate followup pr