prime31 / Nez

Nez is a free 2D focused framework that works with MonoGame and FNA
MIT License
1.76k stars 357 forks source link

Add StopAllCoroutines() method #772

Closed thatpixelguy closed 11 months ago

thatpixelguy commented 11 months ago

Added StopAllCoroutines() method, which will stop all of a manager's coroutines, and can be safely called from inside one of the manager's running coroutines.

ClearAllCoroutines() will now throw an exception if it's called from inside a coroutine, since this can cause unstable behavior.