aboutsummaryrefslogtreecommitdiff
path: root/docs/thread.md
diff options
context:
space:
mode:
authorame <[email protected]>2024-05-01 23:52:54 -0500
committerame <[email protected]>2024-05-01 23:52:54 -0500
commit81b85b557c308ff743b7b83f2b823e508eef54eb (patch)
treefeb939eadc804dfbdcf148c70fa235c36912476b /docs/thread.md
parent22473687abdbf45c86e837d636cde036845e8460 (diff)
fix some hash ub
Diffstat (limited to 'docs/thread.md')
-rw-r--r--docs/thread.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/thread.md b/docs/thread.md
index 0d96809..6a3b19d 100644
--- a/docs/thread.md
+++ b/docs/thread.md
@@ -14,11 +14,11 @@ local thread = llib.thread(function(info)
end)
```
-### thread function parameters
+### thread function parameters **
as used with "info" above
-#### info:send()
+#### info:send() **
'takes "any" value
@@ -29,13 +29,13 @@ info:send(5)
info:send("hello")
```
-#### info:pause()
+#### info:pause() **
pauses the thread (must be resumed from outside)
-### thread return object
+### thread return object **
-#### thread:await()
+#### thread:await() **
'optional timeout
@@ -45,7 +45,7 @@ waits for the thread to return, and returns whatever it returned, if timeout is
thread:await() -- value of N (above)
```
-#### thread:next()
+#### thread:next() **
gets the most oldest value sent using info:send() and pops it
@@ -55,10 +55,10 @@ thread:next() -- 5
thread:next() -- "hello"
```
-#### thread:kill()
+#### thread:kill() **
kills the thread
-#### thread:pause() thread:resume()
+#### thread:pause() thread:resume() **
stops or continues the thread