#cp.just
This module provides functions to help with performing tasks which may be delayed, up to a finite number of loops.
#API Overview
Functions - API calls offered directly by the extension
#API Documentation
#Functions
Signature | cp.just.doUntil(actionFn[, timeout[, frequency]]) -> value |
Type | Function |
Description | Performs an action function, looping until the result of the function evaluates to true (or a non-nil value). It will halt after the timeout in seconds after checking every frequency seconds. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/just/init.lua line 42 |
Signature | cp.just.doWhile(actionFn[, timeout[, frequency]]) -> value |
Type | Function |
Description | Performs an 'action' function, looping while the result of the function evaluates to true . It will halt after timeout seconds, checking with the specified frequency . |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/just/init.lua line 16 |
Signature | cp.just.wait(periodInSeconds) -> nil |
Type | Function |
Description | Pauses the application for the specified number of seconds. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/just/init.lua line 68 |