Optional message: string

Returns void

setTimeout

Is like setTimeout, but activates synchronously if time=0
We special case 0 because of an observed issue where calling setTimeout causes visible flickering.
We believe this is because when requestAnimationFrame calls into the paint function, as soon as that function finishes
evaluating, the results are painted to the screen. As a result, if we want something to occur immediately but call setTimeout
with time=0, then it is pushed to the call stack and rendered in the next frame, so the component that was rendered via
setTimeout appears out-of-sync with the rest of the plot.