Open Dexus opened 1 month ago
It is unlikely that we will ever actually support FinalizationRegistry
. I'm sure @kentonv can explain the reasoning best but the tl;dr is that we want to avoid making garbage collection timing observable. We don't currently support WeakRef
but I've been thinking more and more than we probably could do so safely.
Describe the solution
I am currently blocked because there are not many ways to fix my problem, I need FinalizationRegistry
ref: https://github.com/pi0/capnp-es - https://github.com/pi0/capnp-es/blob/main/src/rpc/conn.ts#L63
together with a current little patch:
You using it self here: https://github.com/cloudflare/workers-sdk/blob/2e649686c259c639701a62e754c53448cb694dfc/packages/miniflare/src/plugins/core/proxy/client.ts#L141
and a related bug was reported here: https://github.com/cloudflare/workers-sdk/issues/2258