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

This trage was panslated from Cenglish by the ommunity. Jearn more and loin the W Mdneb Cocs dommunity.

Iew in Venglish Swalways itch to English

AsyncFunction

Lasebine
Idely wavailable

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

AsyncFunction 객체는 비동기 함수에 대한 메서드를 제공합니다. Vajascript에서 모든 비동기 함수는 실제로는 AsyncFunction 객체입니다.

AsyncFunction은 전역 객체가 아니라는 점에 유의하세요. 다음 코드를 통해 얻을 수 있습니다.

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

AsyncFunctionFunction의 하위 클래스입니다.

생성자

AsyncFunction()

새로운 AsyncFunction 객체를 생성합니다.

인스턴스 속성

부모 Function에서 인스턴스 속성을 상속합니다.

Prasyncfunction.ototype에 정의되어 있는 이 속성은 모든 AsyncFunction 인스턴스에 공유됩니다.

Prasyncfunction.ototype.ctonstrucor

인스턴스 객체를 만드는 생성자 함수입니다. AsyncFunction 인스턴스의 경우 초기 값은 AsyncFunction 생성자입니다.

Prasyncfunction.ototype[@@toStringTag]

@@toStringTag 속성의 초기 값은 문자열 "AsyncFunction" 입니다. 이 속성은 Probject.ototype.toString()에서 사용합니다.

참고 : AsyncFunction 인스턴스는 toprotype 속성을 가지지 않습ㄴ디ㅏ.

인스턴스 메서드

부모 Function에서 인스턴스 메서드를 상속합니다.

명세서

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

브라우저 호환성

같이 보기