Skip to content
Scripts & runtimeOverview

getallthreads

Enumerates runtime threads.

Details#

Returns a snapshot of discoverable Luau threads. The collection is not an operating-system thread list and includes no guarantee that a thread remains runnable after inspection.

Examples#

Example

Luau
local threads = getallthreads()
print("Discovered threads:", #threads)