Manage coroutine-backed processes, inherited environment state, and owned handles.
- Repository:
opencomputers - System:
openos - Type:
library
OpenComputers/src\main\resources\assets\opencomputers\loot\openos\lib\process.lua
local process = require("process")- Description: Register a handle under the current or specified process so it can be closed automatically on exit.
- Parameters:
handleproc
process.addHandle(nil, nil)- Description: Resolve a coroutine back to its owning process record.
- Parameters:
co
process.findProcess(nil)- Description: Return process metadata such as path, environment, command name, and per-process data tables.
- Parameters:
levelOrThread
process.info(nil)- Description: Create a new coroutine-backed process from a script path or function.
- Parameters:
pathenvinitname
process.load(nil, nil, nil, "value")- Description: Remove a handle from a process handle list.
- Parameters:
handleproc
process.removeHandle(nil, nil)- Description: Compatibility helper that returns the current process path, environment, and command name.
- Parameters:
level
process.running(nil)- Only exported module functions are listed on this page.