Skip to content

Instantly share code, notes, and snippets.

@cdcharlebois
Created December 16, 2022 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdcharlebois/abdf9c6e95a29159834d71e47b1cf1d1 to your computer and use it in GitHub Desktop.
Save cdcharlebois/abdf9c6e95a29159834d71e47b1cf1d1 to your computer and use it in GitHub Desktop.
/**
* @param {Nanoflow} asyncTask
* @param {Nanoflow} callback
* @returns {Promise.<void>}
*/
export async function AsyncJSAction(asyncTask, callback) {
// BEGIN USER CODE
asyncTask().then(callback)
// END USER CODE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment