MCPcopy Index your code
hub / github.com/python/cpython / close_when_done

Method close_when_done

Lib/test/support/asynchat.py:227–229  ·  view source on GitHub ↗

automatically close this channel once the outgoing queue is empty

(self)

Source from the content-addressed store, hash-verified

225 return self.producer_fifo or (not self.connected)
226
227 def close_when_done(self):
228 "automatically close this channel once the outgoing queue is empty"
229 self.producer_fifo.append(None)
230
231 def initiate_send(self):
232 while self.producer_fifo and self.connected:

Callers 9

pushMethod · 0.80
cmd_retrMethod · 0.80
cmd_listMethod · 0.80
cmd_nlstMethod · 0.80
cmd_mlsdMethod · 0.80
cmd_quitMethod · 0.80
smtp_QUITMethod · 0.80
smtp_MAILMethod · 0.80
smtp_QUITMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by 8

pushMethod · 0.64
cmd_retrMethod · 0.64
cmd_listMethod · 0.64
cmd_nlstMethod · 0.64
cmd_mlsdMethod · 0.64
cmd_quitMethod · 0.64
smtp_QUITMethod · 0.64
smtp_MAILMethod · 0.64