fs.File: improve handling async I/O on Windows

Before it was possible for .intended_io_mode = .blocking,
.capable_io_mode = .evented, and then the implementation would put a
request on the fs thread, which is the wrong behavior. Now it always
calls the appropriate WriteFile/ReadFile function, passing the intended
io mode directly as a parameter.

This makes the behavior tests pass on Windows with --test-evented-io.
5656f5090dAndrew Kelley committed on 5/2/2020, 6:09:17 PMparent9dac8a5
2 files changedLine totals unavailable