gitlab-org--gitlab-foss/spec/javascripts/helpers/set_timeout_promise_helper.js

4 lines
89 B
JavaScript
Raw Normal View History

2017-10-12 17:04:17 -04:00
export default (time = 0) => new Promise((resolve) => {
setTimeout(resolve, time);
});