If there is already a coroutine A is executing in the executor thread, at this time, if a coroutine B is generated through co_spawn, then this coroutine B will also be executed. What I want is a 'post' like effect, where coroutine B will be delivered to asio's queue. Only when coroutine A is completed can coroutine B be executed.
I know that asio::experimental::channel can meet this requirement, But I just want to know if it's possible to solve this problem without using channel and co_spawn?
If there is already a coroutine A is executing in the executor thread, at this time, if a coroutine B is generated through co_spawn, then this coroutine B will also be executed. What I want is a 'post' like effect, where coroutine B will be delivered to asio's queue. Only when coroutine A is completed can coroutine B be executed.
I know that asio::experimental::channel can meet this requirement, But I just want to know if it's possible to solve this problem without using channel and co_spawn?