mirror of
https://github.com/paricafe/misskey.git
synced 2025-01-07 10:40:49 -06:00
c1514ce91d
Fix #13290
9 lines
302 B
TypeScript
9 lines
302 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
export async function tick(): Promise<void> {
|
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
await new Promise((globalThis.requestIdleCallback ?? setTimeout) as never);
|
|
}
|