yield is a Javascript constructed used to pause and resume a generator function*. It’s described in the context of Observable in their Introduction to Generators notebook. It’s used in the Particle Sankey notebook to allow the generator cell to run repeatedly to yield the animation.
In fact, the flowing dots continue to run without a return, since they are driven by the timer. Everything in the drawChart command, before the definition of tick, though, seems to stop.
I don’t think that code is really idiomatic Observable - probably because it’s been ported from an old-style block.