files/en-us/web/javascript/reference/global_objects/asyncfunction/index.md
The AsyncFunction object provides methods for async functions. In JavaScript, every async function is actually an AsyncFunction object.
Note that AsyncFunction is not a global object. It can be obtained with the following code:
const AsyncFunction = async function () {}.constructor;
AsyncFunction is a subclass of {{jsxref("Function")}}.
AsyncFunction object.Also inherits instance properties from its parent {{jsxref("Function")}}.
These properties are defined on AsyncFunction.prototype and shared by all AsyncFunction instances.
AsyncFunction instances, the initial value is the {{jsxref("AsyncFunction/AsyncFunction", "AsyncFunction")}} constructor.AsyncFunction.prototype[Symbol.toStringTag]
[Symbol.toStringTag] property is the string "AsyncFunction". This property is used in {{jsxref("Object.prototype.toString()")}}.[!NOTE]
AsyncFunctioninstances do not have theprototypeproperty.
Inherits instance methods from its parent {{jsxref("Function")}}.
{{Specifications}}
{{Compat}}
async functionasync function expression