Sha256: 6df64bf36bee673cc680a640bf42474794d8744112a6e6f4a5c8b2a997c0de0e
Contents?: true
Size: 415 Bytes
Versions: 29
Compression:
Stored size: 415 Bytes
Contents
const AsyncUtil = { /// Resolves on the next animation frame nextAnimationFrame() { return new Promise(resolve => { requestAnimationFrame(() => resolve()); }); }, /// Resolve in [duration] milliseconds waitMillis(duration) { return new Promise(resolve => { setTimeout(() => resolve(), duration); }); }, }; export default AsyncUtil;
Version data entries
29 entries across 29 versions & 1 rubygems