Published
Edited
Jan 12, 2022
7 stars
Insert cell
Insert cell
debounce = require("debounce@1.2.1").catch(() => window.debounce)
Insert cell
mutable hello = null
Insert cell
bouncer = debounce((u) => callback(u), 500, false)
Insert cell
callback = (u) => (mutable hello = u)
Insert cell
{
do {
const wait = (1000 * Math.random()) | 0;
bouncer(wait);
await Promises.delay(wait);
yield ""; // necessary to break the loop when this cell is invalidated
} while (true);
}
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more