UNPKG

574 BJavaScriptView Raw
1var makeAwaitFunc = require('./makeAwaitFunc');
2/**
3 * Suspends a suspendable function until the given awaitable expression produces
4 * a result. If the given expression produces an error, then an exception is raised
5 * in the suspendable function.
6 * @param {any} expr - The awaitable expression whose results are to be awaited.
7 * @returns {any} The final result of the given awaitable expression.
8 */
9var await = makeAwaitFunc();
10await.in = makeAwaitFunc('in');
11await.top = makeAwaitFunc('top');
12module.exports = await;
13//# sourceMappingURL=index.js.map
\No newline at end of file