mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Update type definitions in readme
This commit is contained in:
parent
616882912c
commit
8a172747ee
1 changed files with 3 additions and 3 deletions
|
@ -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),
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue