Practical example for async programming