MCPcopy Index your code
hub / github.com/microsoft/SandDance / asyncCallback

Function asyncCallback

docs/app/js/sanddance-app.js:107193–107199  ·  view source on GitHub ↗

* Invoke and await a potentially async callback function. If * an error occurs, trap it and route to Dataflow.error. * @param {Dataflow} df - The dataflow instance * @param {function} callback - A callback function to invoke * and then await. The dataflow will be passed as the single * argu

(df, callback)

Source from the content-addressed store, hash-verified

107191 * and then await. The dataflow will be passed as the single
107192 * argument to the function.
107193 */ async function asyncCallback(df, callback) {
107194 try {
107195 await callback(df);
107196 } catch (err) {
107197 df.error(err);
107198 }
107199}
107200const TUPLE_ID_KEY = Symbol("vega_id");
107201let TUPLE_ID = 1;
107202/**

Callers 1

evaluateFunction · 0.70

Calls 2

callbackFunction · 0.70
errorMethod · 0.45

Tested by

no test coverage detected