debian-mirror-gitlab/spec/frontend/helpers/set_timeout_promise_helper.js
2019-07-07 11:18:12 +05:30

4 lines
93 B
JavaScript

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