Skip to content
Snippets Groups Projects
Commit 5ffd7e40 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

docs fix

parent d3111888
No related branches found
Tags v2.4.16
No related merge requests found
......@@ -17,7 +17,7 @@ LockedDataset
TerminableThread
================
Note that _force=True_ is not available on PyPy. If an attempt to use it on PyPy is made,
Note that **force=True** is not available on PyPy. If an attempt to use it on PyPy is made,
``RuntimeError`` will be thrown.
Please note that in order to terminate, target Python thread must at least execute some Python code.
......
......@@ -17,9 +17,9 @@ class TerminableThread(threading.Thread):
>>> a.start()
>>> a.terminate().join()
Flag whether to terminate is stored in self._terminating.
Flag whether to terminate is stored in **self._terminating**.
If you decide to override run(), you got to check periodically for self._terminating to become true.
If you decide to override run(), you got to check periodically for **self._terminating** to become true.
If you decide to use the loop/cleanup interface, you don't need to do so.
You may also use it as a context manager. Entering the context will start the thread, and exiting
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment