Main thread blocks until asynchronous I/O operations complete