Skip to main content
StartupSnapshot.addDeserializeCallback - node__v8.d.ts - Node documentation
method StartupSnapshot.addDeserializeCallback

Usage in Deno

```typescript import { type StartupSnapshot } from "node:node__v8.d.ts"; ```
StartupSnapshot.addDeserializeCallback(
data?: any,
): void
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.

Parameters

optional
data: any

Return Type

void