Skip to content

Conversation

@Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Sep 8, 2024

Adds jsdoch to readable, fixes some aspects which i will comment

Comment on lines +283 to 299
if (signal) {
const onAbort = () => {
this.destroy(signal.reason ?? new AbortError())
}
signal.addEventListener('abort', onAbort)
this
.on('close', function () {
signal.removeEventListener('abort', onAbort)
if (signal.aborted) {
reject(signal.reason ?? new AbortError())
} else {
resolve(null)
}
})
} else {
this.on('close', resolve)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reorderering so that we only do signal specific stuff like creating onAbort if needed

@Uzlopak
Copy link
Contributor Author

Uzlopak commented Sep 8, 2024

@ronag
PTAL

@Uzlopak Uzlopak merged commit 8ce5ff3 into main Sep 8, 2024
@Uzlopak Uzlopak deleted the jsdoc-readable branch September 8, 2024 14:06
@github-actions github-actions bot mentioned this pull request Dec 3, 2024
This was referenced Dec 16, 2024
@github-actions github-actions bot mentioned this pull request Mar 12, 2025
@github-actions github-actions bot mentioned this pull request May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants