温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/crypto/DecipherChaCha20Poly1305/uncork
点击访问原文链接

DecipherChaCha20Poly1305.uncork method | Node.js crypto module | Bun

DecipherChaCha20Poly1305.uncork method | Node.js crypto module | BunBuildDocsReferenceGuidesBlogDiscord/node:crypto/DecipherChaCha20Poly1305/uncorkMuncork

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:crypto/DecipherChaCha20Poly1305/uncorkMuncork

method

crypto.DecipherChaCha20Poly1305.uncork stream.uncork()); ``` If the `writable.cork()` method is called multiple times on a stream, the same number of calls to `writable.uncork()` must be called to flush the buffered data. ```js stream.cork(); stream.write('some '); stream.cork(); stream.write('data '); process.nextTick(() => { stream.uncork(); // The data will not be flushed until uncork() is called a second time. stream.uncork(); }); ``` See also: `writable.cork()`." data-algolia-static="false" data-algolia-merged="false" data-type="Method">uncork(): void;

The writable.uncork() method flushes all data buffered since cork was called.

When using writable.cork() and writable.uncork() to manage the buffering of writes to a stream, defer calls to writable.uncork() using process.nextTick(). Doing so allows batching of all writable.write() calls that occur within a given Node.js event loop phase.

stream.cork();
stream.write('some ');
stream.write('data ');
process.nextTick(() => stream.uncork());

If the writable.cork() method is called multiple times on a stream, the same number of calls to writable.uncork() must be called to flush the buffered data.

stream.cork();
stream.write('some ');
stream.cork();
stream.write('data ');
process.nextTick(() => {
stream.uncork();
// The data will not be flushed until uncork() is called a second time.
stream.uncork();
});

See also: writable.cork().

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

DecipherChaCha20Poly1305.uncork method | Node.js crypto module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for method node:crypto.DecipherChaCha20Poly1305.uncork | Bun