Closures

isexecutorclosure

Returns whether a function was created by the executor.

Syntax

isexecutorclosure(func: function): boolean
Aliases isexploitfunctionisourclosurecheckclosure

Arguments

NameTypeDescription
funcfunctionFunction to test.

Returns

NameTypeDescription
isExecutorClosurebooleanTrue when the function belongs to the executor.

Description

Returns whether a function was created by the executor.

Call it with 1 parameter(s): func. The argument table explains which values are required and which ones only refine the behavior.

It returns isExecutorClosure (boolean). Use the returns table to separate successful values from nil results and recoverable errors.

Example

Example call with placeholder values.

local result = isexecutorclosure(function() end)
print(result)