Skip to content

Commit

Permalink
Merge branch 'doubleedge'
Browse files Browse the repository at this point in the history
  • Loading branch information
tjanczuk committed May 27, 2014
2 parents 0a6c6ca + 7e707db commit 9acb0e5
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions samples/301_cspyfsps.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Overview of edge.js: http://tjanczuk.github.com/edge

var edge = require('../lib/edge')
, async = require('async');

var helloCs = edge.func(function () {/*
async (input) =>
{
return "C# welcomes " + input.ToString();
}
*/});

var helloPy = edge.func('py', function () {/*
def hello(input):
return "Python welcomes " + input
lambda x: hello(x)
*/});

var helloFs = edge.func('fs', function () {/*
fun input -> async {
return "F# welcomes " + input.ToString()
}
*/});

var helloPs = edge.func('ps', function () {/*
"PowerShell welcomes $inputFromJS"
*/});

async.waterfall([
function (cb) { cb(null, 'Node.js'); },

helloFs,
helloCs,
helloPy,
helloPs
], function (error, result) {
console.log(error || result[0]);
});

0 comments on commit 9acb0e5

Please sign in to comment.