class MXC::Process

A command running in a sandbox, as returned by Sandbox#spawn.

process = MXC.sandbox.spawn("python3 -i")
process.write("print(6 * 7)\n")
process.close_write
process.each { |chunk| print chunk.content }
process.wait # => #<MXC::Result exit_code=0 ...>

Output is read in the background from the start, so the command never blocks on a full pipe, and the timeout applies whether or not anything waits.