Join GitHub today
os: support runtime poller with os.File on Windows #19098
In order to use the runtime poller with
pushed a commit
Feb 15, 2017
Overlapped reads on Windows may run synchronously under some conditions. Files using NTFS compression can not be read asynchronously, for example.
referenced this issue
May 10, 2017
There's no way to flip the bit on an existing file handle, and
I'm afraid this may be impossible to achieve with the current Windows API.
This is probably not such a shame for normal files opened for cached IO, although recent versions of Windows do perform cached reads asynchronously in some cases. But it certainly is limiting for named pipes, files opened with
Maybe this is something that we can improve in Windows. But even if we do, I think for Windows there would still be a lot of value in providing direct access to the runtime poller. There are several APIs that take
That seems at odds with some of the discussion in #18507, unfortunately.