Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-lin committed Feb 14, 2012
1 parent 803edca commit f19044d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/parallel/run.js
Expand Up @@ -7,7 +7,6 @@ flow.parallel( function ( x, y, z, ready ){
// simulates a time consuming io operation
setTimeout( function (){
console.log( 'first task ---------------' );
// default value of x is 5, now is overwritten to 7
console.log( 'x : ' + x );
console.log( 'y : ' + y );
console.log( 'z : ' + z + '\n' );
Expand All @@ -18,16 +17,14 @@ flow.parallel( function ( x, y, z, ready ){
parallel( function ( x, y, z, ready ){
setTimeout( function (){
console.log( 'second task ---------------' );
// default value of x is 5, and was overwritten to 9
// but finally is overwritten from previous stack `next` to 11
console.log( 'x : ' + x );
console.log( 'y : ' + y );
console.log( 'z : ' + z + '\n' );
ready( 1000 );
}, 100 );
}, 9, 10, 55 ).

join().
join( true ).

end( function ( from_parallel, x, y, z ){
setTimeout( function (){
Expand Down

0 comments on commit f19044d

Please sign in to comment.