DirkScripts
Docs
Await
βΉοΈ Shared Module - This can be used by both clients and the server
#lib.await
Used to add a timed delay to the defined callback
lualib.await(func, timeout)
| Parameter | Type | Required | Description |
|---|---|---|---|
| func | Function | true | Callback function to be executed |
| timeout | Number | true | Duration in milliseconds to wait |
