ProtectedconstructorThe command that the shell worker thread is to execute.
The underlying worker thread.
All options that this instance was created with.
ReadonlyerrorsAll errors from the worker thread are accumulated here.
ReadonlyexitThis will only be populated once the worker thread has exited or crashed.
ReadonlyhasIndicates that the worker thread has started.
Readonlyistrue if this instance has been destroyed.
Protected ReadonlyoptionsAll options that this instance was created with.
ReadonlystderrAll stderr combined. This will continue to be updated until the worker thread has exited.
ReadonlystdoutAll stdout combined. This will continue to be updated until the worker thread has exited.
ReadonlyworkerThe underlying worker thread.
Protected ReadonlyworkerThe command that the shell worker thread is to execute.
ProtectedattachAttaches all listeners passed to this instance via options.
ProtectedattachAttaches all listeners to the underlying worker thread.
Terminate the worker and destroy this instance. This is the preferred way of forcefully exiting a worker.
Post a message to the worker thread. Typically, you should not need to do this as the worker thread will take care of itself automatically.
Start the worker thread.
Wait for the worker to exit (if it hasn't already exited).
StaticcompleteCreates a worker, executes it, and waits for it to finish.
StaticcreateCreates a worker without executing it.
StaticstartCreates a worker and starts it.
An individual shell command spawned in a separate worker thread. Use static methods to create an instance.