Skip to content
Thread dispatchOverviewNew · 0.744

isexecutorthread

Describe whether a coroutine has executor-context classification.

Aliasesissynapsethread

Details#

Checks the module's explicit executor-thread mark on a supplied thread or the current thread. It is not a coroutine liveness test and is distinct from function-origin checks.

Examples#

Example

Luau
local thread = coroutine.create(function() end)
print(isexecutorthread(thread))
print(isexecutorthread())