This method allows the server to explicitly indicate that it wants the client thread to proceed. This is useful if the server is about to execute a blocking routine that is dependent upon the client thread during its setup routine.
(self)
| 406 | self.setUp = self._setUp |
| 407 | |
| 408 | def serverExplicitReady(self): |
| 409 | """This method allows the server to explicitly indicate that |
| 410 | it wants the client thread to proceed. This is useful if the |
| 411 | server is about to execute a blocking routine that is |
| 412 | dependent upon the client thread during its setup routine.""" |
| 413 | self.server_ready.set() |
| 414 | |
| 415 | def _setUp(self): |
| 416 | self.enterContext(threading_helper.wait_threads_exit()) |