Add task lib to readme

This commit is contained in:
Filip Tibell 2023-01-23 19:14:41 -05:00
parent af8eb08433
commit bd162a9bd6
No known key found for this signature in database

View file

@ -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>