EventChain's wait function