nil when there is no such thread. Useful for attributing a hooked call back to its caller.
Returns
thread or nil
The triggering thread, or
nil.Example
Related
is_hook_thread: check you are in a hook first.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get the thread that triggered the hook.
oth.get_original_thread() -> thread?
nil when there is no such thread. Useful for attributing a hooked call back to its caller.
nil.local caller = oth.get_original_thread()
is_hook_thread: check you are in a hook first.