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
Will hang, unless I call plugin.close(). Without runInWorker set to true, the process will terminate on its own, without calling plugin.close(). Is this expected? If so, it might be worth calling out in the docs as a usage distinction.
The text was updated successfully, but these errors were encountered:
@chrisdickinson i made the assumption that plugin going out of scope would close it. but maybe not? Or is plugin just not going out of scope here? i'm not really sure how node does top-level async maybe node is not closing because main is not being awaited?
Good catch! Yes, close() is required when runInWorker: true. I'll add it to the docs! (In the future, we might use a FinalizationRegistry to do the cleanup for us.)
This minimal example:
Will hang, unless I call
plugin.close()
. WithoutrunInWorker
set totrue
, the process will terminate on its own, without callingplugin.close()
. Is this expected? If so, it might be worth calling out in the docs as a usage distinction.The text was updated successfully, but these errors were encountered: