Asynchronous input example