Is it safe to use spawn directly in an asio stackful coroutine?
问题 When I use spawn to start a new stackfull coroutine in a coroutine, valgrind says a lot of using uninitialised value(valgrind output). Then I use io_service.post to invoke a handler,and start a new stackfull coroutine in it, every thing seems fine. I have searched and read some documents, but can't find something about how to create a new stackfull coroutine safely in a stackfull coroutine. Here is the code: #include <iostream> #include <boost/asio.hpp> #include <boost/asio/spawn.hpp>