EventBus icon indicating copy to clipboard operation
EventBus copied to clipboard

fix(event_bus): add additional check for functions that can have same pointer

Open mariiatuzovska opened this issue 11 months ago • 0 comments

Creating functions within a loop in Go can result in unexpected behavior, such as multiple functions sharing the same pointer value. The reflect.DeepEqual(handler.callBack, callback) check has been includedas a final measure to distinguish between different values, particularly when the pointers and types are identical.

mariiatuzovska avatar Sep 19 '23 22:09 mariiatuzovska