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

ClientRequest.setMaxListeners method | Node.js http module | Bun

ClientRequest.setMaxListeners method | Node.js http module | BunBuildDocsReferenceGuidesBlogDiscord/node:http/ClientRequest/setMaxListenersMsetMaxListeners

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:http/ClientRequest/setMaxListenersMsetMaxListeners

method

http.ClientRequest.setMaxListenerssetMaxListeners(n: number): this;By default EventEmitters will print a warning if more than 10 listeners are added for a particular event. This is a useful default that helps finding memory leaks. The emitter.setMaxListeners() method allows the limit to be modified for this specific EventEmitter instance. The value can be set to Infinity (or 0) to indicate an unlimited number of listeners.

Returns a reference to the EventEmitter, so that calls can be chained.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco

We're hiring →

智能索引记录