You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to add following coroutine model to your repo?
it works like C-stype longjmp function, to suspend/resume through multi-nested-coroutines.
I am not sure if this is a good coroutine model.
This is very useful for game coding when at every round the AI get update a little then jumps back to the main message loop.
The following code is what I got from stackoverflow:
Hi @etorth , thanks a lot for your proposal. At the moment we are quite busy stabilizing cppcoro and top priority is adding Linux support at the moment, so please be patient before we can add new functionality.
Some thoughts:
What does "rethrow_if_unhandled_exception" do?
Is it correct that "return_value" returns a std::suspend_always{} ?
Is it correct that "await_suspend(std::coroutine_handle<> handle)" does not exchange the coroutine handles?
Hi Andreasbuhr,
Is it possible to add following coroutine model to your repo?
it works like C-stype longjmp function, to suspend/resume through multi-nested-coroutines.
I am not sure if this is a good coroutine model.
This is very useful for game coding when at every round the AI get update a little then jumps back to the main message loop.
The following code is what I got from stackoverflow:
https://stackoverflow.com/questions/61696746/supsending-thrugh-multiple-nested-coroutines
to compile:
The text was updated successfully, but these errors were encountered: