public static object ProcessFuncAsyncHandle(string functionName, object parameters, ExcelFuncAsyncHandle func) { return(ProcessObservable(functionName, parameters, delegate { ExcelAsyncHandleObservable asyncHandleObservable = new ExcelAsyncHandleObservable(); func(asyncHandleObservable); return asyncHandleObservable; })); }
// 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 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); }