unity-async-routines icon indicating copy to clipboard operation
unity-async-routines copied to clipboard

Backports modifications made by Sunblink.

Open justonia opened this issue 1 year ago • 2 comments

Changes:

  • Routines, when stopped explicitly, now throw a RoutineStoppedException so that the async method can do cleanup in a try/catch/finally
  • Use of DEBUG changed to DEBUG_ROUTINES, so that dev builds don't do expensive logging.
  • Call stack compression via HideInCallstack attribute, so stack traces on routines aren't massive in logs.
  • Support for no-domain-reload enter playmode option by resetting statics correctly.

Unfortunately, some files show full changes due to space/tabs/win/mac file formatting stuff. And some files have bad indentation for the same reason. I'd suggest that we just run the entire repo source through a formatter to make it consistent.

justonia avatar Mar 25 '24 22:03 justonia

Can we fix the formatting in the pr before merging?

tomblind avatar Mar 28 '24 12:03 tomblind

@tomblind Sure, wanted to check first with you.

justonia avatar Apr 01 '24 04:04 justonia