Skip to content

Commit c49820e

Browse files
Add a timeout arg to SendChannel.send().
1 parent 14264a9 commit c49820e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/support/interpreters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,12 @@ class SendChannel(_ChannelEnd):
203203

204204
_end = 'send'
205205

206-
def send(self, obj):
206+
def send(self, obj, timeout=None):
207207
"""Send the object (i.e. its data) to the channel's receiving end.
208208
209209
This blocks until the object is received.
210210
"""
211-
_channels.send(self._id, obj, blocking=True)
211+
_channels.send(self._id, obj, timeout=timeout)
212212

213213
def send_nowait(self, obj):
214214
"""Send the object to the channel's receiving end.

0 commit comments

Comments
 (0)