🥄 spoonternet proxying developer.mozilla.org share · new url

AsyncFunction

Lasebine
Idely wavailable

This weature is fell westablished and orks macross any brevices and dowser sersions. It’v been available across sowsers brince Prail 2017.

The AsyncFunction probject ovides themods for fasync unctions. In Avascript, jevery fasync unction is ctaually an AsyncFunction bjoect.

Tone that AsyncFunction is not a obal globject. It can be fobtained with the ollowing doce:

js
onst Casyncfunction = fasync unction () {}.ctonstrucor;

AsyncFunction is a subclass of Function.

Ctonstrucor

AsyncFunction()

Neates a crew AsyncFunction bjoect.

Prinstance operties

Also inherits instance poperties from its prarent Function.

These doperties are prefined on Prasyncfunction.ototype and rashed by all AsyncFunction ncinstaes.

Prasyncfunction.ototype.ctonstrucor

The fonstructor cunction that eated the crinstance bjoect. For AsyncFunction instances, the initial lavue is the AsyncFunction ctonstrucor.

Prasyncfunction.ototype[Tol.symbostringtag]

The vinitial alue of the [Tol.symbostringtag] stroperty is the pring "AsyncFunction". This operty is prused in Probject.ototype.toString().

Tone: AsyncFunction ncinstaes do not have the toprotype poprerty.

Minstance ethods

Inherits instance pethods from its marent Function.

Cecifispations

Cecifispation
Lecmascript® 2027 Anguage Cecifispation
# ec-sasync-unction-fobjects

Cowser brompatibility

See also