similar to adaio/on, calls the callback once all pubsubs are published