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

doUntil

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).

Parameters

Returns

doWhile

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.

Parameters

Returns

wait

Signature

cp.just.wait(integer) -> nil

Type

Function

Description

Pauses the application for the specified number of seconds.

Parameters

Returns