2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-07-01 08:42:04 +00:00

fix: add back yarn docs

This commit is contained in:
sammyette 2025-06-15 16:23:31 -04:00
parent f370667c16
commit 6911fdd16e
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
3 changed files with 26 additions and 0 deletions

View File

@ -86,6 +86,7 @@ var prefix = map[string]string{
"terminal": "term",
"snail": "snail",
"readline": "rl",
"yarn": "yarn",
}
func getTagsAndDocs(docs string) (map[string][]tag, []string) {

View File

@ -22,6 +22,27 @@ local t = yarn.thread(print)
t 'printing from another lua state!'
```
## Functions
|||
|----|----|
|<a href="#thread">thread(fun) -> @Thread</a>|Creates a new, fresh Yarn thread.|
<hr>
<div id='thread'>
<h4 class='heading'>
yarn.thread(fun) -> <a href="/Hilbish/docs/api/yarn/#thread" style="text-decoration: none;" id="lol">Thread</a>
<a href="#thread" class='heading-link'>
<i class="fas fa-paperclip"></i>
</a>
</h4>
Creates a new, fresh Yarn thread.
`fun` is the function that will run in the thread.
#### Parameters
This function has no parameters.
</div>
## Types
<hr>

View File

@ -2,4 +2,8 @@
local yarn = {}
--- Creates a new, fresh Yarn thread.
--- `fun` is the function that will run in the thread.
function yarn.thread(fun) end
return yarn