This is the ThingsDB documentation for version v0, click here for the latest version!

is_future

This function determines whether the provided value is a future value or not.

This function does not generate an event.

Function

is_future(value)

Arguments

Argument Type Description
value any (required) The value to be tested.

Return value

Returns true if the given value is a future, else it returns false.

Example

This code shows some return values for is_float():

[
    is_future( future(nil) ),
    is_future( future(nil).then(||nil) ),
    is_future( ||nil ),
];

Return value in JSON format

[
    true,
    true,
    false
]