tiptap/packages/core/src/utils/sleep.ts

4 lines
138 B
TypeScript
Raw Normal View History

2019-12-08 07:16:44 +08:00
export default function sleep(milliseconds: number): Promise<void> {
return new Promise(resolve => setTimeout(resolve, milliseconds))
2020-09-24 06:29:05 +08:00
}