trio-asyncio icon indicating copy to clipboard operation
trio-asyncio copied to clipboard

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

Open shamrin opened this issue 5 years ago • 0 comments

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

shamrin avatar Jan 05 '21 11:01 shamrin