linusgroh’s avatarlinusgroh’s Twitter Archive—№ 2,113

  1. …in reply to @friedtm
    @friedtm @awesomekling You don't - it just changes when the code runs, if you put an infinite loop in a promise reaction handler it'll still make the whole page unresponsive! Try this and try interacting with the page after 1s: new Promise(r => setTimeout(r, 1000)).then(() => { for (;;); })