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
What specific section or headline is this issue about?
Notes on cleanup callbacks
What information was incorrect, unhelpful, or incomplete?
The documentation does not say anything about the thread that will run the callbacks.
It is very important because until the main thread "yields", they cannot run. And if the main thread never yields, they can only run at the end.
This has been confirmed both in node and deno.
Basically, without repeated calls to setTimeout, the callbacks never run.
I think it is a fundamental piece of information, even considering all the disclaimers.
What did you expect to see?
information about the need of some sort of pause in the main thread
a complete example
Do you have any supporting links, references, or citations?
audetto
changed the title
FinalizationRegistry: missing example and lack of clarity
FinalizationRegistry: missing example and lack of clarity on "threads"
Apr 28, 2023
Josh-Cena
removed
the
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
label
Apr 28, 2023
MDN URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry
What specific section or headline is this issue about?
Notes on cleanup callbacks
What information was incorrect, unhelpful, or incomplete?
The documentation does not say anything about the thread that will run the callbacks.
It is very important because until the main thread "yields", they cannot run. And if the main thread never yields, they can only run at the end.
This has been confirmed both in node and deno.
Basically, without repeated calls to
setTimeout
, the callbacks never run.I think it is a fundamental piece of information, even considering all the disclaimers.
What did you expect to see?
Do you have any supporting links, references, or citations?
https://github.com/orgs/nodejs/discussions/47716
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/javascript/reference/global_objects/finalizationregistry
The text was updated successfully, but these errors were encountered: