mlua icon indicating copy to clipboard operation
mlua copied to clipboard

Support lua_getthreaddata and lua_setthreaddata

Open rhit-sashiks opened this issue 7 months ago • 0 comments

Luau exposes lua_get/setthreaddata for setting thread level data. Would be nice for mlua to support as you could then store data like a delay queue key etc in a thread directly without needing to use its pointer as a hash etc. (e.g, Thread::get_data(&self) and Thread::set_data(&self)

rhit-sashiks avatar May 31 '25 02:05 rhit-sashiks