5 lines
198 B
TypeScript
5 lines
198 B
TypeScript
export async function tick(): Promise<void> {
|
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
await new Promise((globalThis.requestIdleCallback ?? setTimeout) as never);
|
|
}
|