While I was looking over some data fetching code the other day, I came across a pattern that immediately caught my attention. A colleague was fetching paginated results from an API, and the code looked something like this massive recursive function with callbacks nested inside callbacks. It worked, but boy was it hard to follow.

That's when I...