New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C implemented Future doesn't work on Windows #72634
Comments
_WaitCancelFuture in windows_events.py overrides _schedule_callbacks. Since |
I'm not so sure about this. Maybe we can just fix _WaitCancelFuture somehow? |
https://github.com/search?p=3&q=_schedule_callbacks&type=Code&utf8=%E2%9C%93 At least, Future class in uvloop have same API. |
@Haypo, do you know why _WaitCancelFuture overrides _schedule_callbacks() instead |
INADA Naoki added the comment:
Oh no. I tried to forget this mess :-( It took me 2 or 3 months to Hum, let me check. I found this in IocpProactor: def _wait_cancel(self, event, done_callback):
fut = self._wait_for_handle(event, None, True)
# add_done_callback() cannot be used because the wait may only complete
# in IocpProactor.close(), while the event loop is not running.
fut._done_callback = done_callback
return fut I don't understand my comment anymore /o\ I just recall that it was complex to get this crap working in all |
I think _WaitCancelFuture can do same thing by overriding Attached patch does it, and make _schedule_callbacks private |
Latest patch looks good. |
New changeset 6d20d6fe9b41 by INADA Naoki in branch '3.6': New changeset a9a136c9d857 by INADA Naoki in branch 'default': |
Misc/NEWS
so that it is managed by towncrier #552Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: