• Victor Stinner's avatar
    asyncio: sync with Tulip · 18a28dc5
    Victor Stinner authored
    * Fix _WaitHandleFuture.cancel(): return the result of the parent cancel()
      method.
    * _OverlappedFuture.cancel() now clears its reference to the overlapped object.
      Make also the _OverlappedFuture.ov attribute private.
    * Check if _WaitHandleFuture completed before unregistering it in the callback.
      Add also _WaitHandleFuture._poll() and repr(_WaitHandleFuture).
    * _WaitHandleFuture now unregisters its wait handler if WaitForSingleObject()
      raises an exception.
    * _OverlappedFuture.set_exception() now cancels the overlapped operation.
    18a28dc5
windows_events.py 19.4 KB