MCPcopy
hub / github.com/bubkoo/html-to-image / delay

Function delay

src/util.ts:51–56  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

49})()
50
51export function delay<T>(ms: number) {
52 return (args: T) =>
53 new Promise<T>((resolve) => {
54 setTimeout(() => resolve(args), ms)
55 })
56}
57
58export function toArray<T>(arrayLike: any): T[] {
59 const arr: T[] = []

Callers 3

special.spec.tsFile · 0.90
basic.spec.tsFile · 0.90
video.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…