Alright so forgive me if I'm stealing air-time, bu...
# coroutines
g
Alright so forgive me if I'm stealing air-time, but regarding adapting previously blocking API's to coroutines. the MSDN documentation for
ReadFileEx
states this:
Reads data from the specified file or input/output (I/O) device. It reports its completion status asynchronously, calling the specified completion routine when reading is completed or canceled and the calling thread is in an alertable wait state.
Digging up what that means:
An application-defined callback function used with the ReadFileEx and WriteFileEx functions. It is called when the asynchronous input and output (I/O) operation is completed or canceled and the calling thread is in an alertable state (by using the SleepEx, MsgWaitForMultipleObjectsEx, WaitForSingleObjectEx, or WaitForMultipleObjectsEx function with the fAlertable parameter set to TRUE).