UNPKG

js-draw

Version:

Draw pictures using a pen, touchscreen, or mouse! JS-draw is a drawing library for JavaScript and TypeScript.

8 lines (7 loc) 233 B
/** Returns a promise that resolves after `timeout` milliseconds. */ const waitForTimeout = (timeout) => { return new Promise((resolve) => { setTimeout(() => resolve(), timeout); }); }; export default waitForTimeout;