misskey/packages/backend/test/utils.ts

8 lines
123 B
TypeScript

export function sleep(msec: number) {
return new Promise<void>(res => {
setTimeout(() => {
res();
}, msec);
});
}