Package Exports
- wait-please
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wait-please) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
wait-please

Create a promise, waiting for the indicated interval. Useful for organizing tests.
import { time, frame, time, idle } from 'wait-please'
// 3 microtask ticks (queueMicrotask, Promise.resolve ~ same as process.nextTick)
await tick(3)
// 3 animation frames (requestAnimationFrame)
await frame(3)
// 150 ms (setTimeout)
await time(150)
// 1 macrotask in task queue (idle, setImmediate)
await idle()Similar / refs
HK
