Get our breaking news email, free app or daily news podcast
Sebastian Crane
FT Professional,更多细节参见91视频
Save to wishlistSave to wishlist
,这一点在51吃瓜中也有详细论述
Фото: Jonathan Ernst / Reuters,更多细节参见safew官方版本下载
The design of Web streams predates async iteration in JavaScript. The for await...of syntax didn't land until ES2018, two years after the Streams Standard was initially finalized. This timing meant the API couldn't initially leverage what would eventually become the idiomatic way to consume asynchronous sequences in JavaScript. Instead, the spec introduced its own reader/writer acquisition model, and that decision rippled through every aspect of the API.