Bamieh/reflow

View on GitHub
packages/reflow-core/lib/utils/delay.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Creates a delay at the specified number of ms.
 *
 * @param delay
 * @returns {Promise}
 */

module.exports = function delay(delay) {
  return new Promise(resolve => setTimeout(resolve, delay));
}