Syntax
isourthread(thread: thread): booleanAliases
is_our_threadArguments
| Name | Type | Description |
|---|---|---|
thread | thread | Luau thread to check. |
Returns
| Name | Type | Description |
|---|---|---|
tracked | boolean | true when the thread is tracked as a Real-created thread; otherwise false. |
Description
Returns whether the supplied Luau thread is tracked as a Real-created thread. is_our_thread is an alias.
Call it with 1 parameter(s): thread. The argument table explains which values are required and which ones only refine the behavior.
It returns tracked (boolean). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Check whether a Luau thread is currently tracked by Real's caller context.
local thread = coroutine.create(function()
end)
local tracked = isourthread(thread)
print(tracked)