3 ms·
I also don't see that as a problem either. There are 2 seperate issues: a) Be able to await the result Future/Task objects instead of attaching callbacks to th
by Matthias247 12y ago
I also don't see that as a problem either. There are 2 seperate issues:
a) Be able to await the result Future/Task objects instead of attaching callbacks to them. This is done by source code rewriting and has no dependencies on an IO system.
b) Having IO libraries that return future objects. You can do that with IOCP as well as with unix poll based architectures. Might be a little bit easier with IOCP, but it's no deal breaker. I already did an implementation for epoll once. You simply spin up an eventloop in any thread. Any IO read/write returns a future object, posts the work to the eventloop and as soon as the work completes the eventloop completes the future.