@aceworks-studio/time
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "@aceworks-studio/time", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "A set of utility functions around time", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -47,2 +47,12 @@ [![checks](https://github.com/Aceworks-Studio/roblox-utils/actions/workflows/test.yml/badge.svg)](https://github.com/Aceworks-Studio/roblox-utils/actions/workflows/test.yml) | ||
### loopWhile | ||
```lua | ||
function loopWhile(interval: Interval, fn: (deltaTime: number) -> boolean): () -> () | ||
``` | ||
Continuously calls a function at specified intervals while a condition is met. An optional timeout can be be provided using the [interval type](#interval-type). | ||
Returns a function that cancel the loop. | ||
### noYield | ||
@@ -49,0 +59,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
8747
10
102