-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
How to unref readline? #36154
Copy link
Copy link
Closed
Labels
docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.
Description
Activity
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.
Is your feature request related to a problem? Please describe.
The code above just hangs.
Describe the solution you'd like
const readline = require('readline'); const input = readline.createInterface({ input: process.stdin }); +input.unref();Describe alternatives you've considered
None yet.