mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
We're testing this here since framework integration via `filterStackTrace` determines what React uses to determine the name of the Performance entry.
13 lines
248 B
TypeScript
13 lines
248 B
TypeScript
import { setTimeout } from 'timers/promises'
|
|
|
|
async function abstraction(timeoutMS: number) {
|
|
await setTimeout(timeoutMS)
|
|
}
|
|
|
|
export default async function SetTimeoutPage() {
|
|
await abstraction(5)
|
|
await setTimeout(1000)
|
|
|
|
return <p>Done</p>
|
|
}
|