debian-mirror-gitlab/spec/javascripts/helpers/set_timeout_promise_helper.js
2018-03-17 18:26:18 +05:30

3 lines
89 B
JavaScript

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