timcassell / ProtoPromise

Robust and efficient library for management of asynchronous operations in C#/.Net.
MIT License
136 stars 13 forks source link

Don't call `MoveNext*` after it returned false #427

Closed timcassell closed 2 months ago

timcassell commented 2 months ago

This is not technically a bug, as IEnumerator.MoveNext is designed to return false after it is already complete, but it's safer to just not call it again (and costs us nothing to do so).