How to remove a Key from a Map where the key is an actor which has become invalid?

If a previously valid actor has been set as a key of a map how can I remove it after it has become invalid? It seems to be impossible or I’m missing something, this code does nothing:

I solved this by making a dispatcher called on destroy with this actor signature and removing it then but nonetheless it seems strange that there would be no way to remove a null key from map at all? Or is there?

1 Like

Bump, is there a better workaround?