`_.after` creates a function that calls the wrapped function only after it's been called `n` times. So I just call `emit` over and over, and `statusbackend.emit` will only be called once in the `n`th call. This is used to be able to call some function only after a number of async processes have finished