module volt.util.cmdgroup

Code Map

module volt.util.cmdgroup;


alias OsHandle = Pid.OsHandle;

//! Helper class to launch one or more processes to run along side the main
//! process.
class CmdGroup
{
public:
	alias DoneDg = void delegate(i32);


public:
	this(maxWaiting: u32) { }
	fn run(cmd: string, args: string[], dgt: DoneDg) { }
	fn waitOne() { }
	fn waitAll() { }
}

//! Exception form and when execquting commands.
class CmdException : Exception
{
public:
	this(cmd: string, args: string[], reason: string) { }
}
class CmdGroup

Helper class to launch one or more processes to run along side the main process.

class Cmd

Small container representing a executed command, is recycled.

fn set(cmd: string, args: string[], dgt: DoneDg, handle: OsHandle)

Initialize all the fields.

fn reset()

Reset to a unused state.

class CmdException : Exception

Exception form and when execquting commands.