[Assorted-commits] SF.net SVN: assorted:[1887] sandbox/trunk/src/node/promises/index.coffee
Brought to you by:
yangzhang
From: <yan...@us...> - 2014-09-10 07:00:26
|
Revision: 1887 http://sourceforge.net/p/assorted/svn/1887 Author: yangzhang Date: 2014-09-10 07:00:21 +0000 (Wed, 10 Sep 2014) Log Message: ----------- Tweak promises node demo Modified Paths: -------------- sandbox/trunk/src/node/promises/index.coffee Modified: sandbox/trunk/src/node/promises/index.coffee =================================================================== --- sandbox/trunk/src/node/promises/index.coffee 2014-09-10 06:56:51 UTC (rev 1886) +++ sandbox/trunk/src/node/promises/index.coffee 2014-09-10 07:00:21 UTC (rev 1887) @@ -5,3 +5,8 @@ console.log(1) # 1 gets printed before 0; 0 is processed nextTick rather than # immediately/recursively +setTimeout( + -> d.promise.done (x) -> console.log(x+2) + 10 +) +# 2 also gets fired, even though we've previously already fired This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |