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
I wrote a NodeJS thing that would store temporary files in the temp directory and where deleted when the objects got GC'ed
but it never got deleted when the NodeJS process exits so the files remain in the temp directory.
I think it would be useful to be able to control weather or not a registered function should do the cleanup job before a process exit.
And i thought to myself as well, could browser benefit from this as well? I think so... but haven't come up with any usecases yet
Some alternative words for it could be runOnQuit or runOnExit
The idea here is to do some cleanup when a process or when a worker also quits. NodeJS or Deno do not have a onunload event so hence the option/proposal to being able to control it with an option with finalizers...
I also know that there is this cleanup some proposal so maybe it would be possible to do something like:
But i don't know... i fear that the functions will not have time to run... i just wanted to lift this up as there arn't any good alternative right now...
The text was updated successfully, but these errors were encountered:
I wrote a NodeJS thing that would store temporary files in the temp directory and where deleted when the objects got GC'ed
but it never got deleted when the NodeJS process exits so the files remain in the temp directory.
I think it would be useful to be able to control weather or not a registered function should do the cleanup job before a process exit.
And i thought to myself as well, could browser benefit from this as well? I think so... but haven't come up with any usecases yet
i was thinking in terms of
Some alternative words for it could be
runOnQuit
orrunOnExit
The idea here is to do some cleanup when a process or when a worker also quits. NodeJS or Deno do not have a
onunload
event so hence the option/proposal to being able to control it with an option with finalizers...I also know that there is this cleanup some proposal so maybe it would be possible to do something like:
But i don't know... i fear that the functions will not have time to run... i just wanted to lift this up as there arn't any good alternative right now...
The text was updated successfully, but these errors were encountered: