We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef85d34 commit b739653Copy full SHA for b739653
Lib/test/support/interpreters.py
@@ -165,6 +165,10 @@ def id(self):
165
def _info(self):
166
return _channels.get_info(self._id)
167
168
+ @property
169
+ def is_closed(self):
170
+ return self._info.closed
171
+
172
173
_NOT_SET = object()
174
@@ -217,6 +221,11 @@ class SendChannel(_ChannelEnd):
217
221
218
222
_end = 'send'
219
223
224
225
226
+ info = self._info
227
+ return info.closed or info.closing
228
220
229
def send(self, obj, timeout=None):
230
"""Send the object (i.e. its data) to the channel's receiving end.
231
0 commit comments