@async Back

The @async tag indicates that a function is asynchronous, which means that the function you called should return a promise.

Note: DO NOT use this tag for other types of asynchronous functions, like functions that provide a callback.

/**
* asynchronous function
* @async
* @returns {Promise<*>}
*/
function asynchronous() {
    return new Promise((resolve, reject) => {});
}

async function main() {
    await asynchronous();
}
Empty Comments
Sign in GitHub

As the plugin is integrated with a code management system like GitLab or GitHub, you may have to auth with your account before leaving comments around this article.

Notice: This plugin has used Cookie to store your token with an expiration.