debian-mirror-gitlab/spec/javascripts/helpers/set_timeout_promise_helper.js
2018-12-13 13:39:08 +05:30

4 lines
93 B
JavaScript

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