diff --git a/README.md b/README.md index 1bf3cb5..7a5d12a 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,21 @@ type process = { +
+task - Task scheduler & thread spawning + +```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), +} +``` + +
+