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 }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Listen takes a callback that just adds a listener for "listening", .close() should do the same, adding an event listener for "close".
Funny coincidence, I was discussing that with @mmalecki last night in #libuv. He couldn't convince me of a pressing need but if it makes the API more consistent without breaking existing code, I'm not against it.
Realized that this is a lot of unnecessary boiler
Listen takes a callback that just adds a listener for
"listening"
,.close()
should do the same, adding an event listener for"close"
.I'm also debating in my head right now whether the listen callback should take an error. It would be a breaking change, but worth considering.
The text was updated successfully, but these errors were encountered: