Update type definitions in readme

This commit is contained in:
Filip Tibell 2023-01-24 12:31:25 -05:00
parent 616882912c
commit 8a172747ee
No known key found for this signature in database

View file

@ -118,9 +118,9 @@ type process = {
```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,
defer: <T...>(functionOrThread: thread | (T...) -> (...any), T...) -> thread,
delay: <T...>(duration: number?, functionOrThread: thread | (T...) -> (...any), T...) -> thread,
spawn: <T...>(functionOrThread: thread | (T...) -> (...any), T...) -> thread,
wait: (duration: number?) -> (number),
}
```