react-code-dataset / next.js /packages /next /src /server /app-render /after-task-async-storage.external.ts
Download next.js/packages/next/src/server/app-render/after-task-async-storage.external.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 736 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/server/app-render/after-task-async-storage.external.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/server/app-render/after-task-async-storage.external.ts
-
curl -L -o after-task-async-storage.external.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/server/app-render/after-task-async-storage.external.ts
736 Bytes
| import type { AsyncLocalStorage } from 'async_hooks' | |
| // Share the instance module in the next-shared layer | |
| import { afterTaskAsyncStorageInstance as afterTaskAsyncStorage } from './after-task-async-storage-instance' with { 'turbopack-transition': 'next-shared' } | |
| import type { WorkUnitStore } from './work-unit-async-storage.external' | |
| export interface AfterTaskStore { | |
| /** The phase in which the topmost `after` was called. | |
| * | |
| * NOTE: Can be undefined when running `generateStaticParams`, | |
| * where we only have a `workStore`, no `workUnitStore`. | |
| */ | |
| readonly rootTaskSpawnPhase: WorkUnitStore['phase'] | undefined | |
| } | |
| export type AfterTaskAsyncStorage = AsyncLocalStorage<AfterTaskStore> | |
| export { afterTaskAsyncStorage } | |