Repository navigation
Support providing AbortSignal to the fs.stat functions #57751
Description
Activity
- addedfeature requestIssues requesting new Node.js features.Issues requesting new Node.js features.
on Apr 4, 2025 There has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the never-stale
Issues and PRs exempt from automated stale handling. label or close this issue if it should be closed. If not, the issue will be automatically closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.- addedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on Oct 2, 2025 This is still relevant and a pr seems to have been opened
- removedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on Oct 3, 2025 There has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the never-stale
Issues and PRs exempt from automated stale handling. label or close this issue if it should be closed. If not, the issue will be automatically closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.- addedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on Apr 1, 2026 This is still relevant and a pr seems to have been opened
- removedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on Apr 2, 2026 This should be fixed by #63142
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsAwaiting Triage
What is the problem this feature will solve?
Currently
fs.statdoes not support providing anAbortSignalto fail-fast during teardown, unlike basically all other fs operationsWhat is the feature you are proposing to solve the problem?
That the
StatOptionsobject have a new fieldsignal?: AbortSignaland when that signal emits an"abort"event the underlying OS FS actions is aborted an the callback parameter ofstatis called with anAbortErrorandundefined.Futhermore, the async version of
statwould also support this option but instead would reject the promise with anAbortError.What alternatives have you considered?
None, this needs to be implemented within the VM