PeturDarri/GenericEventBus

Possible issue with Mono and ConditionalWeakTable

Closed this issue · 2 comments

I came across this bug report for Mono and was wondering if that could cause issues using ConditionalWeakTable:
mono/mono#13560

I guess it would only impact cases where devs create and delete event buses.

Yeah, it was a mistake to use ConditionalWeakTable. It also has issues with IL2CPP in Unity. I have a branch (wip/replace-conditional-weak-table) that replaces it with an explicit dispose pattern, but haven't gotten around to merging it yet.

Merged the branch.