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

Function delay

packages/runtime-core/__tests__/components/Suspense.spec.ts:2682–2684  ·  view source on GitHub ↗
(delayInms: any)

Source from the content-addressed store, hash-verified

2680 setup() {
2681 const loading = ref(false)
2682 const delay = (delayInms: any) => {
2683 return new Promise(resolve => setTimeout(resolve, delayInms))
2684 }
2685 onMounted(async () => {
2686 loading.value = true
2687 await delay(1000)

Callers 1

setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected