book-exploring-async-basics icon indicating copy to clipboard operation
book-exploring-async-basics copied to clipboard

[Translation] 6_epoll_kqueue_iocp

Open Jaxx4Fun opened this issue 5 years ago • 1 comments

Mio powers the OS event queue used in Tokio, which is a runtime that provides I/O, networking, scheduling etc.

Here the word which refers to Tokio, right? So does it matter whether there is a comma before which? To my knowledge, the answer is NO, what a which refers to just depends on the context.

This is especially apparent when you want to write a library since abstracting over both means you'll either have to model IOCP as readiness-based or model epoll/kqueue as completion-based.

Can I understand the word model here as abstract or transform?

Jaxx4Fun avatar May 27 '20 09:05 Jaxx4Fun

Here the word which refers to Tokio, right? So does it matter whether there is a comma before which? To my knowledge, the answer is NO, what a which refers to just depends on the context.

Yes, it refers to Tokio. I think the comma is correct as is since it follows a fully qualified sentence, but I have to add that English comma rules is something I often get wrong.

Can I understand the word model here as abstract or transform?

I think abstract could be used here. Transform is not strictly correct since all you provide is an abstraction that covers up the fact that they're different.

cfsamson avatar May 27 '20 09:05 cfsamson