Pipe:close() method
Closes the Pipe and the associated process. Any further read/write/readerror operations won't achieve.
Return value
This method returns no value.Example
local pipe = sys.Pipe("cmd.exe /C SET")
-- list all current environment variables in the env_vars table
local output = await(pipe:read(200))
local env_vars = {}
pipe:close()
for var, value in output:gmatch("(%w+)=(.-)\r\n") do
env_vars[var] = value
end