You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 84ae422
Browse filesBrowse the repository at this point in the historyBrowse files
net: tie listen() signal to server lifetime, async-iterable Server
Address review feedback on the net/promises API:
- `listen()` now passes its `signal` through to `server.listen()` so the
signal aborts the server for its entire lifetime rather than only the
pending listen. Aborting before the server is listening rejects the
returned promise; aborting afterwards closes the server, matching
net.Server's own `signal` behavior.
- `net.Server` is now async iterable: `for await (const socket of server)`
yields each incoming connection as an alternative to the 'connection'
event, mirroring readline.Interface.
Also update test-repl-tab-complete-require and test-repl-tab-complete-import
to account for the new `net/promises` builtin appearing in completions.
Refs: #21482
Assisted-by: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Ethan Arrowood <ethan@arrowood.dev>
0 commit comments