异步 I/O 让应用程序能够在不阻塞的情况下读写数据。
The asynchronous I/O allows applications to read and write data without blocking.
是否应该阻塞,直到足够的数据到达。
但是,这种做法不总是我们想要的,读线程很可能希望等待(即阻塞自身),直到有数据可用时为止。
This may not always be the desired approach, however, and it is likely that the reader thread might want to wait or block itself until the time data becomes available.
应用推荐