python-trio / trio-asyncio

a re-implementation of the asyncio mainloop on top of Trio
Other
188 stars 37 forks source link

Use public .is_closed() instead of private ._check_closed() from asyncio #98

Open shamrin opened 3 years ago

shamrin commented 3 years ago

trio-asyncio use private asyncio.BaseEventLoop._check_closed() method everywhere.

We may want to switch to public .is_closed() instead. It was introduced in Python 3.5.

See also: https://github.com/python-trio/trio-asyncio/pull/96#discussion_r551806302