MCPcopy
hub / github.com/vuejs/core / timeout

Function timeout

packages/runtime-core/__tests__/apiAsyncComponent.spec.ts:13–13  ·  view source on GitHub ↗
(n: number = 0)

Source from the content-addressed store, hash-verified

11import { onActivated } from '../src/components/KeepAlive'
12
13const timeout = (n: number = 0) => new Promise(r => setTimeout(r, n))
14
15describe('api: defineAsyncComponent', () => {
16 test('simple usage', async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected