nsIProcess
Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)Implemented by: @mozilla.org/process/util;1
. To create an instance, use:
var process2 = Components.classes["@mozilla.org/process/util;1"] .createInstance(Components.interfaces.nsIProcess2);
void runAsync([array, size_is(count)] in string args, in unsigned long count, [optional] in nsIObserver observer, [optional] in boolean holdWeak); |
Asynchronously runs the process with which the object was initialized, optionally calling an observer when the process finishes running.
void runAsync( [array, size_is(count)] in string args, in unsigned long count, in nsIObserver observer, Optional in boolean holdWeak Optional );
args
count
entries.count
args
array.observer
OptionalnsIProcess2
instance as the subject and "process-finished" or "process-failed" as the topic. The observer will be notified on the main thread.holdWeak
Optionaltrue
, a weak reference is used to hold the observer.