(durationMs: number, resolveWith?: T)
| 1 | export type MaybePromise<T> = Promise<T> | T |
| 2 | |
| 3 | export function wait<T = void>(durationMs: number, resolveWith?: T): Promise<T> { |
| 4 | return new Promise((resolve) => setTimeout(resolve, durationMs, resolveWith)) |
| 5 | } |
| 6 | |
| 7 | /** |
| 8 | * Allows asynchronous actions and microtasks to happen. |
no outgoing calls
searching dependent graphs…