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.
   
  
  
  
   Instance methods
   
    Inherits instance methods from its parent Function.
    
  
  Specifications
  
  Browser compatibility
  
   
    
     
      
       |  | Desktop | Mobile | Server | 
      
       |  | Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | Deno | Node.js | 
     
     
      
       | AsyncFunction | 55 | 15 | 52 | 42 | 10.1 | 55 | 52 | 42 | 10.3 | 6.0 | 55 | 1.0 | 7.6.0 | 
      
       | AsyncFunction | 55 | 15 | 52 | 42 | 10.1 | 55 | 52 | 42 | 10.3 | 6.0 | 55 | 1.0 | 7.6.0 |