I added a small function to help us deal with timeouts not working properly in Beaker pre-0.8. You call it similarly to setTimeout, but passing on the promise to wait for instead of a function to run after the timeout. Example: await promiseTimeout(p.archive.readFile('/portal.json', {timeout: 2000}), 2000); ({timeout: 2000} kept as-is to rely on Beaker 0.8's timeout in the future.)
The discovery tab now doesn't update in the background, but instead requires the user to press a new "refresh" button (always the first entry). I've also fixed it being too fast and thus consuming too many resources in a too short timespan.
setTimeout
, but passing on the promise to wait for instead of a function to run after the timeout. Example:await promiseTimeout(p.archive.readFile('/portal.json', {timeout: 2000}), 2000);
({timeout: 2000}
kept as-is to rely on Beaker 0.8's timeout in the future.)