mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Add task lib to readme
This commit is contained in:
parent
af8eb08433
commit
bd162a9bd6
1 changed files with 15 additions and 0 deletions
15
README.md
15
README.md
|
@ -112,6 +112,21 @@ type process = {
|
|||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b>task</b> - Task scheduler & thread spawning</summary>
|
||||
|
||||
```lua
|
||||
type task = {
|
||||
cancel: (thread: thread) -> (),
|
||||
defer: (functionOrThread: thread | (...any) -> (...any)) -> thread,
|
||||
delay: (duration: number?, functionOrThread: thread | (...any) -> (...any)) -> thread,
|
||||
spawn: (functionOrThread: thread | (...any) -> (...any)) -> thread,
|
||||
wait: (duration: number?) -> (number),
|
||||
}
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
|
|
Loading…
Reference in a new issue