Skip to content

Commit 3ece5e7

Browse files
author
Joel Collins
committed
Fixed typo
1 parent a0b6fb1 commit 3ece5e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/basic_usage/action_threads.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Many actions in your LabThing may perform tasks that take a long time (compared
55

66
This introduces a couple of problems. Firstly, a request that triggers a long function will, by default, block the Python interpreter for the duration of the function. This usually causes the connection to timeout, and the response will never be revieved.
77

8-
Tasks are introduced to manage long-running functions in a way that does not block HTTP requests. Any API Action will automatically run as a background thread.
8+
Action threads are introduced to manage long-running functions in a way that does not block HTTP requests. Any API Action will automatically run as a background thread.
99

1010
Internally, the :class:`labthings.LabThing` object stores a list of all requested actions, and their states. This state stores the running status of the action (if itis idle, running, error, or success), information about the start and end times, a unique ID, and, upon completion, the return value of the long-running function.
1111

0 commit comments

Comments
 (0)