Implemented a sample to test closures created within async functions