Skip to content
Functions & closuresReference

isexecutorclosure

Identifies closures associated with the module.

Aliasescheckclosureisexecutorfunctionisourclosure

Details#

Classifies a callable as belonging to the module, including its registered functions and recognized wrappers. This is separate from the current caller or account identity. Non-functions return false; the registered aliases use the same check.

Signature#

Luau
isexecutorclosure(value: any): boolean

Parameters#

ParameterTypeDescription
valueanyValue to classify; non-functions return false.

Returns#

A boolean classification of value.

Examples#

Example

Luau
local f = newcclosure(function() end)
print(isexecutorclosure(f)) -- true