A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncFunction below:

AsyncFunction - JavaScript | MDN

AsyncFunction

Baseline Widely available

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 Function.

Constructor
AsyncFunction()

Creates a new AsyncFunction object.

Instance properties

Also inherits instance properties from its parent Function.

These properties are defined on AsyncFunction.prototype and shared by all AsyncFunction instances.

AsyncFunction.prototype.constructor

The constructor function that created the instance object. For AsyncFunction instances, the initial value is the AsyncFunction constructor.

AsyncFunction.prototype[Symbol.toStringTag]

The initial value of the [Symbol.toStringTag] property is the string "AsyncFunction". This property is used in Object.prototype.toString().

Note: AsyncFunction instances do not have the prototype property.

Instance methods

Inherits instance methods from its parent Function.

Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4