MCPcopy Create free account
hub / github.com/bugy/script-server / __finish

Method __finish

src/tests/test_utils.py:576–586  ·  view source on GitHub ↗
(self, exit_code)

Source from the content-addressed store, hash-verified

574 self.__finish(15)
575
576 def __finish(self, exit_code):
577 if self.finished:
578 return
579
580 with self.finish_condition:
581 self.exit_code = exit_code
582 self.finished = True
583 self.output_stream.close()
584 self.finish_condition.notify_all()
585
586 self.notify_finish_thread.join()
587
588 def is_finished(self):
589 return self.finished

Callers 3

finishMethod · 0.95
stopMethod · 0.95
killMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected