Add a callback that will be called when the Node.js instance is about to get serialized into a snapshot and exit. This can be used to release resources that should not or cannot be serialized or to convert user data into a form more suitable for serialization.
function addSerializeCallback | Node.js v8 module | Bun BuildDocsReferenceGuidesBlogDiscord/node:v8/startupSnapshot/addSerializeCallbackFaddSerializeCallback BuildDocsReferenceGuidesBlogDiscord /node:v8/startupSnapshot/addSerializeCallbackFaddSerializeCallback v8.startupSnapshot.addSerializeCallbackfunction addSerializeCallback(callback: StartupSnapshotCallbackFn,data?: any): void; Referenced typestype StartupSnapshotCallbackFn = (args: any) => any
Search the reference...
/
function
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →function addSerializeCallback | Node.js v8 module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for function node:v8.startupSnapshot.addSerializeCallback | Bun