On 03/22/2014 11:36 PM, Boris Zbarsky wrote:
On 3/23/14 2:21 AM, Jim Blandy wrote:
See my slightly longer explanation in the previous message. The
advantage over passing true for ownsWeak is that my proposed API is
completely deterministic.

I'm not sure I follow....  The current setup in the observer service is
also completely deterministic except in terms of the amount of memory
and CPU is uses, no?

I hope we're not talking past each other... the visible behavior of

Services.obs.addObserver("glurph", () => { alert("Glurph!"); }, true)

(pretending that the function supported nsIWeakReference) depends on when the GC notices the function is garbage. No?

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to