public JavascriptBasedCompiler(string resource, string compileFuncName)
        {
            _compileFuncName = compileFuncName;
            var workItem = new JSWorkItem(null, Utility.ResourceAsString(resource));

            _workQueue.Enqueue(workItem);
            workItem.GetValueSync();
        }
 public string Compile(string coffeeScriptCode)
 {
     var ret = new JSWorkItem(_compileFuncName, coffeeScriptCode);
     _workQueue.Enqueue(ret);
     return ret.GetValueSync();
 }