Yes, util.async has a few useful tools for this kind of thing, but in general you wanna do what I just wrote down