// Async function support public static object Run(string callerFunctionName, object callerParameters, ExcelFunc asyncFunc) { Debug.Print("ExcelAsyncUtil.Run - {0} : {1}", callerFunctionName, callerParameters); return(AsyncObservableImpl.ProcessFunc(callerFunctionName, callerParameters, asyncFunc)); }
// Async function with ExcelAsyncHandle // The function will run on the main thread (like an Excel 2010+ native async function), // but can spawn a thread and return the value later. public static object Run(string callerFunctionName, object callerParameters, ExcelFuncAsyncHandle asyncFunc) { return(AsyncObservableImpl.ProcessFuncAsyncHandle(callerFunctionName, callerParameters, asyncFunc)); }
// Async observable support // This is the most general RTD registration public static object Observe(string callerFunctionName, object callerParameters, ExcelObservableSource observableSource) { return(AsyncObservableImpl.ProcessObservable(callerFunctionName, callerParameters, observableSource)); }