Earlier quoted context omitted.
So what does this thatWindow.setInterval(100).then( foo ) mean exactly? How many times the foo() will be called? And how to stop that interval?
foo will be called only once (see my answer above). I am working on another script to achieve event streams using es6 generators let's keep in touch
promisifiedWindow.setInterval(200).then(x => console.log("res:", x));
-> Promise {[[PromiseStatus]]: "pending", [[PromiseValue]]: undefined}
>> VM310:1 res: undefined
How do you cancel the interval?