gitlab-org--gitlab-foss/spec/javascripts/helpers/set_timeout_promise_helper.js
2018-10-17 11:18:17 -05:00

4 lines
93 B
JavaScript

export default (time = 0) =>
new Promise(resolve => {
setTimeout(resolve, time);
});