Aliases
None.Arguments
thread
required
The coroutine whose environment, script association, or stack is inspected.
Returns
table?
The thread’s global environment, or nil if it cannot be resolved.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Returns the specified thread’s global environment.
gettenv(thread: thread): table?
local thread = coroutine.create(function() end)
print(type(gettenv(thread)))
