Skip to content
InstancesOverview

getthreads

Enumerates threads associated with an object.

Details#

Enumerates available runtime thread references. It describes currently discoverable coroutines rather than operating-system threads or all past executions.

Examples#

Example

Luau
local threads = getthreads()
print(type(threads))
for _, thread in pairs(threads) do print(type(thread)) end