debian-mirror-gitlab/spec/frontend/helpers/set_timeout_promise_helper.js

5 lines
93 B
JavaScript
Raw Normal View History

2019-05-18 00:54:41 +05:30
export default (time = 0) =>
new Promise(resolve => {
setTimeout(resolve, time);
});