Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .then((result) => {
- if(pause) {
- return new Promise( () => {
- let id = setInterval(() => {
- if(!pause) {
- resolve(result);
- clearInterval(id);
- }
- }, 100);
- });
- }
- return result;
- })
- .then((result) => {
- console.log(result);
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement