MCPcopy Create free account
hub / github.com/ipython/ipython / halt

Method halt

IPython/testing/iptest.py:320–327  ·  view source on GitHub ↗

Safely stop the thread.

(self)

Source from the content-addressed store, hash-verified

318 self.start()
319
320 def halt(self):
321 """Safely stop the thread."""
322 if not self.started:
323 return
324
325 self.stop.set()
326 os.write(self.writefd, b'\0') # Ensure we're not locked in a read()
327 self.join()
328
329class SubprocessStreamCapturePlugin(Plugin):
330 name='subprocstreams'

Callers 2

finalizeMethod · 0.80
waitMethod · 0.80

Calls 2

setMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected