microsoft / microsoft/node-api-dotnet
NodejsEnvironment Dispose() is blocked by pending tasks
Open
@vmoroz is already working on this.
Since Aug 13, 2024.
bug
libnode
- Dominant language
- C#
- Stars
- 783
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
In the following snippet, the nodejs environment starts running a task that continues indefinitely:
env.Run(() =>
{
JSValue.RunScript(@"
setInterval(() => {
console.log('Hello from Node.js');
}, 1000);
");
});
Calling env.Dispose() doesn't kill the environment but instead waits for completion (which never occurs).
Is it possible to forcefully "kill" the node environment?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.