From: Ryan Dahl
Date: Tue, 15 Sep 2009 13:25:06 +0000 (+0200)
Subject: Add documentation for promise.emitSuccess and emitError
X-Git-Tag: v0.1.11~9
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fdc136df690d11a9b5b65ac58e9c1f420b24c274;p=platform%2Fupstream%2Fnodejs.git
Add documentation for promise.emitSuccess and emitError
---
diff --git a/doc/api.html b/doc/api.html
index dcae34f..6e078bf 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.
+promise.emitSuccess(arg1, arg2, …)
+
+
+
+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.)
+
+
+promise.emitError(arg1, arg2, …)
+
+
+
+Emits the "error" event.
+
+
+
promise.wait()
@@ -1861,7 +1880,7 @@ init (Handle<Object> target)