BuildDocsReferenceGuidesBlogDiscordGlobalsStreamPipeOptionspreventCloseBuildDocsReferenceGuidesBlogDiscordGlobalsStreamPipeOptionspreventCloseStreamPipeOptions.preventClosepreventCloseReferenceDocsGuidesDiscordMerch StoreGitHubBlogRuntimePackage managerTest runnerBundlerPackage runnerBun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseWe're hiring →
property preventClose | globals module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
Errors and closures of the source and destination streams propagate as follows:
An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source