You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started.md
+1-6Lines changed: 1 addition & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,8 @@ Here's to you get started.
8
8
9
9
## Prerequisites
10
10
11
-
* Python 3.11+
11
+
* Python 3.9+
12
12
13
-
The project is quite heavily type-annotated, and we use `Concatenate[Any, ...]` in some function declarations.
14
-
However `Python <=3.10` does not support `...` being the last argument as laid out in [this stack overflow question](https://stackoverflow.com/questions/74893354/is-literal-ellipsis-really-valid-as-paramspec-last-argument).
15
-
16
-
If possible, I may release a sister version of thread that is compatible with `Python 3.9+` in the future, but for the time being,
> This only schedules the thread to be killed, and does not immediately kill the thread
146
+
147
+
<br />
148
+
149
+
150
+
## Behviours
151
+
152
+
These are a list of thread behvaiours
153
+
154
+
### Killing Threads - Introduced in v0.1.2
155
+
156
+
While preferably not utilized, we do support killing threads.<br />
157
+
We mark a thread to be killed, and will only be killed when the thread invokes `sys.settrace()`.
158
+
159
+
> [!IMPORTANT]<br />
160
+
> This means that if your `target` has a long `time.wait()` call, it will only be killed after it moves onto the next line.
161
+
162
+
<br />
163
+
164
+
Want an alternative? Learn about [Daemonized Threads!](https://www.geeksforgeeks.org/python-daemon-threads/)
165
+
166
+
<br />
167
+
168
+
169
+
### Gracefull Exiting - Introduced in v0.1.2
170
+
171
+
When the program is abruptly stopped with `CTRL+C` for example, active threads will now attempt to gracefully kill itself.<br />
172
+
173
+
This is not to be an "end-all be-all" for managing threads. You should still try to properly exit a thread before abruptly exiting the program, or utilize a `Daemonized Thread`.
0 commit comments