Add a callback that will be called when the Node.js instance is deserialized from a snapshot. The callback and the data (if provided) will be serialized into the snapshot, they can be used to re-initialize the state of the application or to re-acquire resources that the application needs when the application is restarted from the snapshot.
function addDeserializeCallback | Node.js v8 module | Bun BuildDocsReferenceGuidesBlogDiscord/node:v8/startupSnapshot/addDeserializeCallbackFaddDeserializeCallback BuildDocsReferenceGuidesBlogDiscord /node:v8/startupSnapshot/addDeserializeCallbackFaddDeserializeCallback v8.startupSnapshot.addDeserializeCallbackfunction addDeserializeCallback(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 addDeserializeCallback | Node.js v8 module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for function node:v8.startupSnapshot.addDeserializeCallback | Bun