use CountDownLatch to wait for subscription