axmol icon indicating copy to clipboard operation
axmol copied to clipboard

async await

Open imtrobin opened this issue 5 years ago • 4 comments

Hi, If you are modifying to latest C++, can consider await asynci instead of callbacks.

imtrobin avatar May 15 '20 08:05 imtrobin

The await require c++20

halx99 avatar May 15 '20 08:05 halx99

  • needs a coroutine queue to check them status and resume them
  • should ensure coroutines resume on main thread

halx99 avatar Jul 06 '21 03:07 halx99

Possiable API:

  • Director::getInstance()->startCoroutine
  • Director::getInstance()->stopCoroutine
  • Director::getInstance()->stopAllCoroutines

halx99 avatar Jul 06 '21 03:07 halx99

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.

stale[bot] avatar Sep 19 '22 11:09 stale[bot]

@halx99 Can we reopen it? Not for 1.0 Off course.

aismann avatar Oct 04 '22 02:10 aismann

@halx99 Plz add cpp20 Label too.

Is ist possible that the bot dont stale some Special issus Like this?

aismann avatar Oct 04 '22 02:10 aismann

Yes, refer to: https://github.com/axmolengine/axmol/blob/dev/.github/stale.yml#L6

halx99 avatar Oct 04 '22 03:10 halx99

For the implementation (at the moment): plz don't remove the C++17 part (use compiler directive or so on )

aismann avatar Oct 04 '22 04:10 aismann

@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: image

aismann avatar May 30 '23 14:05 aismann

https://github.com/axmolengine/axmol/issues/1471

halx99 avatar Dec 04 '23 04:12 halx99