Wie verwende ich die asynchrone Funktion als Promise-Executor in js?JavaScript

Javascript-Forum
Anonymous
 Wie verwende ich die asynchrone Funktion als Promise-Executor in js?

Post by Anonymous »

Wie verwende ich die asynchrone Funktion als Promise-Executor in js?
Das Folgende funktioniert nicht:

Code: Select all

new Promise(async (resolve, reject) => {
//something
});

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post