You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
The timing of DoAgentFinalization should probably be wholly implementation defined. In practice, I'd expect it to happen at the end of the sweep phase, but for engines with incremental or concurrent sweeping, there's no fundamental reason why it couldn't happen after each slice/in the process of the concurrent sweeping.
The results of this become visible through cleanupSome, which should probably always invoke the callback, and whose iterator should yield items as long as the queue isn't empty.
Another question is when this queue should be processed automatically, invoking the cleanup callback passed to the WeakFactory's constructor. On that, I think we should specify that it must not happen before the end of the current task, but that otherwise the timing is implementation defined, too.
Is this something that should be embedder defined?
cc @dtribble @erights @marjakh
The text was updated successfully, but these errors were encountered: