Parameters
Returns
boolean - true if it is a hook thread, false otherwise.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
oth.is_hook_thread(thread: thread?): boolean
| Parameter | Type | Description |
|---|---|---|
thread | thread | (Optional) The thread to check. Defaults to the current thread. |
boolean - true if it is a hook thread, false otherwise.
print("Is current thread hook thread? ", oth.is_hook_thread())
oth.hook(print, function(...)
assert(oth.is_hook_thread() == true)
end)