diff --git a/doc/api.html b/doc/api.html index dcae34f3ad..6e078bf049 100644 --- a/doc/api.html +++ b/doc/api.html @@ -280,6 +280,25 @@ Adds a listener for the "error" event. Returns the same promise object.
+If you created the promise (by doing new node.Promise()) then call +emitSuccess to emit the "success" event with the given arguments. +
+(promise.emit("success", arg1, arg2, …) should also work, but doesn’t at +the moment due to a bug; use emitSuccess instead.)
+Emits the "error" event. +
+