My guess is you can't because sharing memory between threads is hard.
Co-routines usually can't, atleast not in rust/go etc. and those are more advanced than lua.