News for hackers. Stuff that matters.
Re:Allora – Use promises on any JavaScript object by egeozcan on Tuesday July 19, 2016 @07:44AM (#12121139)

    promisifiedWindow.setInterval(200).then(x => console.log("res:", x));
    -> Promise {[[PromiseStatus]]: "pending", [[PromiseValue]]: undefined}
    >> VM310:1 res: undefined
How do you cancel the interval?
Re:Allora – Use promises on any JavaScript object by gianlucaguarini on Tuesday July 19, 2016 @08:45AM (#12121380)
Ok with this it should be possible https://github.com/GianlucaGuarini/allora/pull/3
Re:Allora – Use promises on any JavaScript object by gianlucaguarini on Tuesday July 19, 2016 @07:51AM (#12121168)
At moment it's not possible and it does not make any sense to use a setInterval with a promise in return. But I will think about a simple solution to clear the timer functions