Skip to content

NodejsEnvironment Dispose() is blocked by pending tasks #355

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't workinglibnode

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions