gh-129874: avoid mixing pure python and C impl in eager execution (#130515)

This commit is contained in:
Kumar Aditya 2025-02-24 21:07:59 +05:30 committed by GitHub
parent 8a76eb8469
commit 38d45d23a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -110,7 +110,7 @@ class Task(futures._PyFuture): # Inherit Python Task implementation
self.__eager_start()
else:
self._loop.call_soon(self.__step, context=self._context)
_register_task(self)
_py_register_task(self)
def __del__(self):
if self._state == futures._PENDING and self._log_destroy_pending: