Published
Edited
Feb 23, 2018
1 star
Insert cell
Insert cell
mutable runsLeft = 0
Insert cell
mutable totalRuns = 0
Insert cell
{
if (runsLeft > 0) {
await Promises.delay(500);
mutable totalRuns += 1;
mutable runsLeft -= 1;
yield html`Run #${mutable totalRuns}`;
} else {
yield "Stopped.";
}
}
Insert cell
Insert cell
{
run;
mutable runsLeft = 10;
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more