IsThreadRunning
This function was added in DSL 1
Description
Check if a thread is running.
Returns if thread is running, as in not shutdown or shutting down.
function IsThreadRunning(thread) --[[ ... ]] end
Parameters
thread:thread- The thread to check if it is running.
Return Values
running:boolean-trueif the thread is running,falseotherwise.
Example
local thread = CreateThread(function()end)
print(IsThreadRunning(thread)) --> true
Wait(0)
print(IsThreadRunning(thread)) --> false
See Also
- DSL