Skip to content

NodejsEnvironment Dispose() is blocked by pending tasks #355

Open
@camnewnham

Description

@camnewnham

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?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglibnode

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions