All files / web/src/lib/vision/opencv simpleAsync.ts

0% Statements 0/12
0% Branches 0/1
0% Functions 0/1
0% Lines 0/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13                         
'use client'

/**
 * Simple async function - just a delay, no OpenCV.
 * Testing if the freeze is about async functions in general.
 */
export async function simpleDelay(ms: number): Promise<string> {
  console.log('[simpleAsync] simpleDelay called with', ms)
  await new Promise((resolve) => setTimeout(resolve, ms))
  console.log('[simpleAsync] delay complete')
  return 'done'
}