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

5 lines
93 B
JavaScript
Raw Normal View History

2018-10-17 03:13:26 -04:00
export default (time = 0) =>
new Promise(resolve => {
setTimeout(resolve, time);
});