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

Method close

Lib/test/test__interpchannels.py:185–189  ·  view source on GitHub ↗
(self, *, force=True)

Source from the content-addressed store, hash-verified

183 return type(self)(self.pending - 1, closed=self.closed)
184
185 def close(self, *, force=True):
186 if self.closed:
187 if not force or self.pending == 0:
188 return self
189 return type(self)(0 if force else self.pending, closed=True)
190
191
192def run_action(cid, action, end, state, *, hideclosed=True):

Calls

no outgoing calls

Tested by

no test coverage detected