async await
Hi, If you are modifying to latest C++, can consider await asynci instead of callbacks.
The await require c++20
- needs a coroutine queue to check them status and resume them
- should ensure coroutines resume on main thread
Possiable API:
- Director::getInstance()->startCoroutine
- Director::getInstance()->stopCoroutine
- Director::getInstance()->stopAllCoroutines
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@halx99 Can we reopen it? Not for 1.0 Off course.
@halx99 Plz add cpp20 Label too.
Is ist possible that the bot dont stale some Special issus Like this?
Yes, refer to: https://github.com/axmolengine/axmol/blob/dev/.github/stale.yml#L6
For the implementation (at the moment): plz don't remove the C++17 part (use compiler directive or so on )
@halx99: Maybe it can be closed? Because to the limits with Windows UWP (Visual Studio 2022), => only support C++17
Maybe you can add a project like:
axmol-future
and put this issue there?
see also:
https://github.com/axmolengine/axmol/issues/1471