1) anyone know of a multiplatform WeakHashMap impl...
# getting-started
y
1) anyone know of a multiplatform WeakHashMap implementation? 2) just checking, if the key used for some entry in a WeakHashMap gets GCed, does the corresponding value become eligible for GC too? As in, I need the value to live while the key is alive, but when the key dies, and no one else refers to the value, I want the value to die.
y
Ah of course CLOVIS already solved this! Thanks for the issue link btw!
From searching around, it seems like my use case doesn't even need GC support beyond weak references. The map can simply get rid of the dead references occasionally, so it shouldn't cause memory issues really.