We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1c037c commit bd1f800Copy full SHA for bd1f800
1 file changed
pysyncobj/syncobj.py
@@ -291,6 +291,21 @@ def destroy(self):
291
else:
292
self._doDestroy()
293
294
+ def tick_thread_alive(self):
295
+ """
296
+ Check if the tick thread is alive.
297
298
+ if self.__thread and self.__thread.is_alive():
299
+ return True
300
+ return False
301
+
302
+ def destroy_synchronous(self):
303
304
+ Correctly destroy SyncObj. Stop autoTickThread, close connections, etc. and ensure the threads are gone.
305
306
+ self.destroy()
307
+ self.__thread.join()
308
309
def waitReady(self):
310
"""
311
Waits until the transport is ready for operation.
0 commit comments