Function
wait
(cb: () => void | Promise<void>, ms = 100)
Source from the content-addressed store, hash-verified
| 1 | import { delay } from './delay' |
| 2 | |
| 3 | export async function wait(cb: () => void | Promise<void>, ms = 100) { |
| 4 | await delay(ms) |
| 5 | |
| 6 | return cb() |
| 7 | } |
Tested by
no test coverage detected