Apple отрекламировала Microsoft14:57
We can do better. What we actually want is to sleep until the state changes, not sleep for an arbitrary duration and check.,这一点在爱思助手中也有详细论述
。PDF资料是该领域的重要参考
writeSync(chunk) { addChunk(chunk); return true; },
chunks.push(chunk);。关于这个话题,哔哩哔哩提供了深入分析