Skip to content

Instantly share code, notes, and snippets.

@christopheranderson
Last active November 15, 2017 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christopheranderson/2343a65490f74a177fe519a887517ff6 to your computer and use it in GitHub Desktop.
Save christopheranderson/2343a65490f74a177fe519a887517ff6 to your computer and use it in GitHub Desktop.
Why would I do this?
using System;
using System.Threading.Tasks;
using EdgeJs;
class Program
{
public static async Task Start()
{
var func = Edge.Func(@"
return function (data, callback) {
callback(null, '');
}
");
string str = await func());
}
static void Main(string[] args)
{
Start().Wait();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment