chore: added todo for a rare bug
This commit is contained in:
parent
a31b39fd1d
commit
a4b83679b1
@ -5,6 +5,12 @@ using Engine.Core.Debug;
|
|||||||
|
|
||||||
namespace Engine.Core;
|
namespace Engine.Core;
|
||||||
|
|
||||||
|
// TODO!: every reverse loop has a chance to have more than 1 unsubscription,
|
||||||
|
// for (int i = listeners.Count - 1; i >= 0; i--)
|
||||||
|
// can be replaced with
|
||||||
|
// for (int i = listeners.Count - 1; i >= 0; i = Math.Min(i - 1, listeners.Count - 1))
|
||||||
|
// but this would causes possible double calls on already called callbacks, find a better method.
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a simple event with no parameters.
|
/// Represents a simple event with no parameters.
|
||||||
/// <para>Example usage:</para>
|
/// <para>Example usage:</para>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user