A snippet for infinite function stacking, and also for when you have time critical tasks that need to be interleaved with slow tasks that are not time critical.
Original from Toptal
See the article in the toptal blog:
Today I needed to make a sample that would play a portion of a sample instead of playing the whole sample, from a nexus ui waveshape element. There are three problems that disallowed this: