I have a method to trigger a pause using a promise with a setTimeout:
pause = ({ time } = {}) => { const pauseTime = time || 500; return new Promise((