CipherChaCha20Poly1305.destroy method | Node.js crypto module | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:crypto/
CipherChaCha20Poly1305/
destroyMdestroy
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:crypto/
CipherChaCha20Poly1305/
destroyMdestroy
method
crypto.CipherChaCha20Poly1305.destroydestroy(error?:
Error): this;
Destroy the stream. Optionally emit an 'error' event, and emit a 'close' event (unless emitClose is set to false). After this call, the readable stream will release any internal resources and subsequent calls to push() will be ignored.
Once destroy() has been called any further calls will be a no-op and no further errors except from _destroy() may be emitted as 'error'.
Implementors should not override this method, but instead implement readable._destroy().
@param error
Error which will be passed as payload in 'error' event
Referenced typesinterface
Errorcause?: unknown
The cause of the error.
message: string
name: string
stack?: string
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →