user-async-function
This module exports a function that calls a user function and waits for its completion. This function can be a callback-calling function, an async/await function, or a promise-returning function.
How to use
const userAsyncFunction = // somewhere in your code... { } // or in an async function { await } // Pass extra arguments at will// They will be passed to the user function (before the callback)