diff options
| author | ame <[email protected]> | 2024-05-01 23:52:54 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-05-01 23:52:54 -0500 |
| commit | 8740f3685e959d6477230cf4e8f33c7c93f9ea2b (patch) | |
| tree | feb939eadc804dfbdcf148c70fa235c36912476b /docs | |
| parent | e59344f2d3903b9643ff8d77064147dfabced117 (diff) | |
fix some hash ub
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/thread.md | 16 |
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 |
