summaryrefslogtreecommitdiff
path: root/api/jsapi.7.txt
diff options
context:
space:
mode:
Diffstat (limited to 'api/jsapi.7.txt')
-rw-r--r--api/jsapi.7.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/api/jsapi.7.txt b/api/jsapi.7.txt
index cc79f73b..ec361e4d 100644
--- a/api/jsapi.7.txt
+++ b/api/jsapi.7.txt
@@ -378,7 +378,7 @@ _returns_;; true if creation was successful or directory already existed
Executes a shell command using the default search path
_command_;; The command to execute
-_stdin(String)_;; Callback function for stdin, pass null if only stderr is
+_stdout(String)_;; Callback function for stdin, pass null if only stderr is
needed, optional
_stderr(String)_;; Callback function for stderr, optional
_returns_;; A deferred, it will be resolved if the child exits
@@ -533,6 +533,17 @@ the fail callback chain of the deferred is called.
Deferreds implement the following methods:
+==== void Deferred.always(Function callback)
+****
+
+Registers a function for then done and fail chain.
+
+_callback_;; A callback function that will be called when the Deferred is
+resolved or rejected. If the function returns a deferred the original deferred will be replaced with
+the new deferred.
+_returns_;; A new deferred that can be used to chain callbacks.
+****
+
==== void Deferred.done(Function callback)
****