-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
How to unref readline? #36154
Copy link
Copy link
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.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.
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.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.