Ejemplo n.º 1
0
 public static object ProcessFuncAsyncHandle(string functionName, object parameters, ExcelFuncAsyncHandle func)
 {
     return(ProcessObservable(functionName, parameters,
                              delegate
     {
         ExcelAsyncHandleObservable asyncHandleObservable = new ExcelAsyncHandleObservable();
         func(asyncHandleObservable);
         return asyncHandleObservable;
     }));
 }
Ejemplo n.º 2
0
 // 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));
 }
Ejemplo n.º 3
0
 // 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);
 }